initFromAngles

fun initFromAngles(degX: Float, degY: Float, degZ: Float): Quaternion

Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.

See also: graphene_quaternion_init_from_euler()

Return

the initialized quaternion

Since

1.0

Parameters

degX

rotation angle on the X axis (yaw), in degrees

degY

rotation angle on the Y axis (pitch), in degrees

degZ

rotation angle on the Z axis (roll), in degrees