HMM_Rotate - normalize vec3 Axis

This commit is contained in:
Kyle De'Vir
2016-06-08 03:30:22 +10:00
parent b63e6b558f
commit 2f6b2fd260

View File

@@ -802,6 +802,8 @@ HMM_Rotate(float Angle, hmm_vec3 Axis)
{
hmm_mat4 Result = HMM_Mat4d(1.0f);
Axis = HMM_Normalize(Axis);
float SinTheta = sinf(HMM_ToRadians(Angle));
float CosTheta = cosf(HMM_ToRadians(Angle));
float CosValue = 1.0f - CosTheta;