mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
vec: normalize cross product helper
This commit is contained in:
@@ -323,9 +323,7 @@ glm_lookat(vec3 eye,
|
||||
glm_vec3_sub(center, eye, f);
|
||||
glm_vec3_normalize(f);
|
||||
|
||||
glm_vec3_cross(f, up, s);
|
||||
glm_vec3_normalize(s);
|
||||
|
||||
glm_vec3_crossn(f, up, s);
|
||||
glm_vec3_cross(s, f, u);
|
||||
|
||||
dest[0][0] = s[0];
|
||||
|
||||
Reference in New Issue
Block a user