mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 10:17:13 -06:00
use multiplication instead of division for 1 / 2
This commit is contained in:
1 parent
bf18ca647e
commit
25feab7860
1 file changed
+2
-2
+2
-2
@@ -31,7 +31,7 @@ glm_quat(versor q,
|
||||
float z) {
|
||||
float a, c, s;
|
||||
|
||||
a = angle / 2.0f;
|
||||
a = angle * 0.5f;
|
||||
c = cosf(a);
|
||||
s = sinf(a);
|
||||
|
||||
@@ -48,7 +48,7 @@ glm_quatv(versor q,
|
||||
vec3 v) {
|
||||
float a, c, s;
|
||||
|
||||
a = angle / 2.0f;
|
||||
a = angle * 0.5f;
|
||||
c = cosf(a);
|
||||
s = sinf(a);
|
||||
|
||||
|
||||
Reference in new issue
Block a user