Quaternion.init

Initializes a #graphene_quaternion_t using the given four values.

class Quaternion
init
(
float x
,
float y
,
float z
,
float w
)

Parameters

x float

the first component of the quaternion

y float

the second component of the quaternion

z float

the third component of the quaternion

w float

the fourth component of the quaternion

Return Value

the initialized quaternion

Meta