public static TSMatrix CreateFromYawPitchRoll(FP yaw, FP pitch, FP roll) { TSMatrix matrix; TSQuaternion quaternion; TSQuaternion.CreateFromYawPitchRoll(yaw, pitch, roll, out quaternion); CreateFromQuaternion(ref quaternion, out matrix); return(matrix); }
public static TSQuaternion Euler(FP x, FP y, FP z) { x *= FP.Deg2Rad; y *= FP.Deg2Rad; z *= FP.Deg2Rad; TSQuaternion rotation; TSQuaternion.CreateFromYawPitchRoll(y, x, z, out rotation); return(rotation); }