-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.QuaternionToAxisAngle
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get the rotation angle and axis for a given quaternion
| Parameter | Default Value | Note |
|---|---|---|
| q | QuaternionIdentity |
| Condition | Return Value |
|---|---|
| (always) | map |
q = raylib.QuaternionFromAxisAngle([0,1,0], 90*(pi/180))
result = raylib.QuaternionToAxisAngle(q)
print result.axis // [0, 1, 0]
print result.angle // ~1.5708 (pi/2)