initFromMatrix

fun initFromMatrix(m: Matrix? = null, order: EulerOrder): Euler

Initializes a #graphene_euler_t using the given rotation matrix.

If the #graphene_matrix_t @m 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

m

a rotation matrix

order

the order used to apply the rotations