init

fun init(x: Float, y: Float, z: Float, w: Float): Quaternion

Initializes a #graphene_quaternion_t using the given four values.

Return

the initialized quaternion

Since

1.0

Parameters

x

the first component of the quaternion

y

the second component of the quaternion

z

the third component of the quaternion

w

the fourth component of the quaternion