From 578bd4f22c0cbf1a9103d7f2063d465f402b2cde Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 8 Sep 2023 23:18:19 -0700 Subject: [PATCH] math: minor fixes Signed-off-by: Stephen Gutekanst --- src/math/mat.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/math/mat.zig b/src/math/mat.zig index 9c9ce7aa..1d00bfad 100644 --- a/src/math/mat.zig +++ b/src/math/mat.zig @@ -124,7 +124,7 @@ pub fn Mat( /// Constructs a 2D matrix which scales each dimension by the given scalar. // TODO: needs tests pub inline fn scaleScalar(t: Vec.T) Matrix { - return scale(Vec.splat(t)); + return scale(math.Vec2.splat(t)); } /// Constructs a 2D matrix which translates coordinates by the given vector. @@ -140,7 +140,7 @@ pub fn Mat( /// Constructs a 2D matrix which translates coordinates by the given scalar. // TODO: needs tests pub inline fn translateScalar(t: Vec.T) Matrix { - return translate(Vec.splat(t)); + return translate(math.Vec2.splat(t)); } /// Returns the translation component of the matrix. @@ -215,7 +215,7 @@ pub fn Mat( /// Constructs a 3D matrix which scales each dimension by the given scalar. // TODO: needs tests pub inline fn scaleScalar(s: Vec.T) Matrix { - return scale(Vec.splat(s)); + return scale(math.Vec3.splat(s)); } /// Constructs a 3D matrix which translates coordinates by the given vector. @@ -232,7 +232,7 @@ pub fn Mat( /// Constructs a 3D matrix which translates coordinates by the given scalar. // TODO: needs tests pub inline fn translateScalar(t: Vec.T) Matrix { - return translate(Vec.splat(t)); + return translate(math.Vec3.splat(t)); } /// Returns the translation component of the matrix.