Quaternion.initFromMatrix

Initializes a #graphene_quaternion_t using the rotation components of a transformation matrix.

class Quaternion
initFromMatrix

Parameters

m Matrix

a #graphene_matrix_t

Return Value

the initialized quaternion

Meta