Пример #1
0
        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);
        }
Пример #2
0
    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);
    }