setFromQuaternion

fun setFromQuaternion(q: Quaternion, order: EulerOrder = _order, update: Boolean = true): Euler

Sets the angles of this Euler instance from a normalized quaternion q.

Return

A reference to this Euler instance.

Parameters

q

A normalized Quaternion.

order

The order in which the axis rotations are applied.

update

Whether the onChange callback should be executed.