initFromVec3

fun initFromVec3(v: Vec3? = null, order: EulerOrder): Euler

Initializes a #graphene_euler_t using the angles contained in a #graphene_vec3_t.

If the #graphene_vec3_t @v is null, the #graphene_euler_t will be initialized with all angles set to 0.

Return

the initialized #graphene_euler_t

Since

1.2

Parameters

v

a #graphene_vec3_t containing the rotation angles in degrees

order

the order used to apply the rotations