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

Type: graphene.quaternion.Quaternion

the initialized quaternion