Welcome, Guest! Login | Register
Converting iObjectOrientation
Info
Report
209 Posts

How would i convert a Quaternion to it's 0 to 360 degree for printing.
Created on: 3 months ago
Info
Report
186 Posts

What I know is that you can use iQuaternionToEulerAngles (Quaternion, float, float, float), which will put the 3 axes in the floats you specify. It doesn't do it exactly in 0 to 360 manner, but more like -180 to 180, which is hard to manipulate (rotations are just pain in the ass).
Created on: 3 months ago
Info
Report
91 Posts

For some stupid reason, quaternions are hard coded to be -180 to +180. RadMath may be able to help here since iirc it can do angles and measures them in the proper full 360 degree range.
Created on: 3 months ago
Info
Report
209 Posts

I think i figured out a way to do what i want and it doesn't involve rotations in 0 to 360.. so its all good now.
Created on: 3 months ago
Reply
Preview
Post
Or use the advanced reply form here...
Sponsored