This adds a ToEuler method to both Matrix and Quaternion that returns a Vector3 with the x-axis, y-axis, and z-axis rotations required to create the rotation.
This uses the same rotational order as the yaw-pitch-roll functions which is "rotates about y-axis (yaw), then x-axis (pitch), then z-axis (roll)"
Also added overloads of the CreateFromYawPitchRoll methods for both Matrix and Quaternion that takes the angles as a Vector3 in the same order.
This adds a
ToEuler
method to both Matrix and Quaternion that returns a Vector3 with the x-axis, y-axis, and z-axis rotations required to create the rotation.This uses the same rotational order as the yaw-pitch-roll functions which is "rotates about y-axis (yaw), then x-axis (pitch), then z-axis (roll)"
Also added overloads of the
CreateFromYawPitchRoll
methods for both Matrix and Quaternion that takes the angles as a Vector3 in the same order.