public static Matrix RotationYawPitchRoll(float yaw, float pitch, float roll) => RotationQuaternion(Quaternion.RotationYawPitchRoll(yaw, pitch, roll));
/// <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)); }