From 7ddbb30e18b2064ec57ed17afb29752c0f14fd7d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 2 May 2019 22:35:32 -0700 Subject: Basic math: added Matrix4x4 Scale(T s) function --- Common/interface/BasicMath.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Common/interface') diff --git a/Common/interface/BasicMath.h b/Common/interface/BasicMath.h index ac0750f9..64766d54 100644 --- a/Common/interface/BasicMath.h +++ b/Common/interface/BasicMath.h @@ -1037,6 +1037,11 @@ template struct Matrix4x4 return Scale(v.x, v.y, v.z); } + static Matrix4x4 Scale(T s) + { + return Scale(s,s,s); + } + // D3D-style left-handed matrix that rotates a point around the x axis. Angle (in radians) // is measured clockwise when looking along the rotation axis toward the origin: -- cgit v1.2.3