From 437fdace340691158d6a05186ba284cebcab5cd6 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 29 Jul 2024 13:43:51 +0800 Subject: [PATCH] added 3 AxisVectors. --- inc/hgl/math/Vector.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/hgl/math/Vector.h b/inc/hgl/math/Vector.h index ca52a8b..42d6ce4 100644 --- a/inc/hgl/math/Vector.h +++ b/inc/hgl/math/Vector.h @@ -39,6 +39,10 @@ namespace hgl #undef DEF_VECTOR + constexpr const Vector3f XAxisVector=Vector3f(1,0,0); + constexpr const Vector3f YAxisVector=Vector3f(0,1,0); + constexpr const Vector3f ZAxisVector=Vector3f(0,0,1); + inline const Vector3f GetAxisVector(const AXIS &axis) { switch(axis)