Ejemplo n.º 1
0
 public static Matrix RotationYawPitchRoll(float yaw, float pitch, float roll) =>
 RotationQuaternion(Quaternion.RotationYawPitchRoll(yaw, pitch, roll));
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a rotation matrix with a specified yaw, pitch, and roll.
        /// </summary>
        /// <param name="yaw">Yaw around the y-axis, in radians.</param>
        /// <param name="pitch">Pitch around the x-axis, in radians.</param>
        /// <param name="roll">Roll around the z-axis, in radians.</param>
        /// <returns>The created rotation matrix.</returns>
        public static Matrix RotationYawPitchRoll(float yaw, float pitch, float roll)
        {
            Quaternion quaternion = Quaternion.RotationYawPitchRoll(yaw, pitch, roll);

            return(RotationQuaternion(quaternion));
        }