Skip to main content

Quaternion.ToAngleAxis()

Converts a rotation to angle-axis representation (angles in degrees).

Returns:

typeDescription
numberangle
Vector3axis

Usage

---@type Quaternion
local quaternion;


local val0, val1 = quaternion.ToAngleAxis()

Example

Lua supports the multi-variable return using tuples. Use the function like bellow:

local angle, axis = myQuaternion.ToAngleAxis();