Quaternion.initFromAngleVec3

Initializes a #graphene_quaternion_t using an @angle on a specific @axis.

class Quaternion
initFromAngleVec3
(
float angle
,)

Parameters

angle float

the rotation on a given axis, in degrees

axis Vec3

the axis of rotation, expressed as a vector

Return Value

the initialized quaternion

Meta