jtainer
pirms 8 mēnešiem
committed by
GitHub
vecāks
revīzija
1b14c082ed
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: B5690EEEBB952194
1 mainītis faili ar
1 papildinājumiem un
2 dzēšanām
-
src/raymath.h
|
|
@ -2338,8 +2338,7 @@ RMAPI Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) |
|
|
|
float ilength = 0.0f; |
|
|
|
|
|
|
|
// Vector3Normalize(axis) |
|
|
|
Vector3 v = axis; |
|
|
|
length = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z); |
|
|
|
length = axisLength; |
|
|
|
if (length == 0.0f) length = 1.0f; |
|
|
|
ilength = 1.0f/length; |
|
|
|
axis.x *= ilength; |
|
|
|