Skip to content

raylib.QuaternionFromAxisAngle

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get rotation quaternion for an angle and axis NOTE: Angle must be provided in radians

Parameters

Parameter Default Value Note
axis [0, 1, 0]
angle 0

Return value

Condition Return Value
(always) map

Notes

Example

// 90-degree rotation around the Y axis
axis = [0, 1, 0]
angle = 90 * (pi / 180)
q = raylib.QuaternionFromAxisAngle(axis, angle)

Clone this wiki locally