math: update to latest Zig version

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-07-21 20:29:40 -07:00
parent 3a81f35b8b
commit c3e8c25f1d

View file

@ -74,7 +74,7 @@ pub const vec = struct {
/// // v.x == 1337, v.y == 1337, v.z == 1337 /// // v.x == 1337, v.y == 1337, v.z == 1337
/// ``` /// ```
pub inline fn splat(comptime V: type, scalar: f32) V { pub inline fn splat(comptime V: type, scalar: f32) V {
return @splat(size(V), scalar); return @splat(scalar);
} }
/// Computes the squared length of the vector. Faster than `len()` /// Computes the squared length of the vector. Faster than `len()`