-
Here's a GLM snippet: glm::quat pitchRotation = glm::angleAxis(this->pitch, glm::vec3 { 1.f, 0.f, 0.f });
glm::quat yawRotation = glm::angleAxis(this->yaw, glm::vec3 { 0.f, -1.f, 0.f });
return glm::toMat4(yawRotation) * glm::toMat4(pitchRotation); Sure, I can handtype the 2 func impls (off GLM or a textbook) with raw floats, but what'd be the idiomatic "cglm way" for the above? |
Beta Was this translation helpful? Give feedback.
Answered by
metaleap
Feb 8, 2025
Replies: 1 comment
-
Hm OK from the looks of things, I guess |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
metaleap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm OK from the looks of things, I guess
glm_mat4_mul
andglm_quatv
will be the cglm equivalents here..