Exemple #1
0
        private void TestRotations()
        {
            Vector4 v = new Vector4(1, 1, 1, 1);
            Quaternion q = new Quaternion(Yaw, Pitch, Roll);
            Vector4 r = q.RotatePt(v);

            DXVec4 dxv = new DXVec4(1, 1, 1, 1);
            DXQuat dxq = DXQuat.RotationYawPitchRoll(Yaw, Pitch, Roll);
            DXMatrix dxm = DXMatrix.RotationQuaternion(dxq);
            DXVec4 dxr = DXVec4.Transform(dxv, dxm);
        }