Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 485 Bytes

AxisAngle.vec3.float.md

File metadata and controls

34 lines (19 loc) · 485 Bytes

AxisAngle(vec3, float)

Outputs rotation of angle around axis.

rot axisAngle(vec3 axis, float angle)

Parameters

axis

Type: vec3

The axis to rotate around.

angle

Type: float

How much to rotate (in degrees).

Returns

rot

Examples

inspect(axisAngle(vec3(0, 1, 0), 90)) // (0, 90, 0))

inspect(axisAngle(vec3(1, 0, 0), 45)) // (45, 0, 0)