How to convert to Quaternion to AxisAngle?
I found the document here.
https://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm
is this code also for three.js?
How to convert to Quaternion to AxisAngle?
I found the document here.
https://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm
is this code also for three.js?
Yes, it seems it works as expected, see Edit fiddle - JSFiddle - Code Playground
However, the function in the fiddle is not complete. It’s necessary to handle the edge cases when the angle is 0 or 180 degrees.
Here I have used it for visualization
Quaternion - Axis, Angle Visualization
Try it directly: quaternion
and see source.
( From the Collection of examples from discourse.threejs.org )