Euler.initFromVec3

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.

Parameters

v graphene.vec3.Vec3

a #graphene_vec3_t containing the rotation angles in degrees

order graphene.types.EulerOrder

the order used to apply the rotations

Return Value

Type: graphene.euler.Euler

the initialized #graphene_euler_t