added 3 AxisVectors.

This commit is contained in:
hyzboy 2024-07-29 13:43:51 +08:00
parent 2393bb43dc
commit 437fdace34

View File

@ -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)