Sport Improvement Stack Trade is a query and reply website for skilled and unbiased recreation builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The very best solutions are voted up and rise to the highest
Requested
Considered
19 occasions
So the equal code in GLM of the above image can be like this:
glm::quat q;
glm::vec3 v;
glm::vec3 rotated_vector = q * v;
and the rotated_vector
above is the results of making use of the Lq
transformation to vector v
.
Am I proper on this?
The image is from this hyperlink:
http://graphics.stanford.edu/programs/cs348a-17-winter/Papers/quaternion.pdf
$endgroup$
1
default