Example #1
0
        private MiscTypes.SIMDVector128 ConvertVector(MiscTypes.FLVector flVector)
        {
            MiscTypes.SIMDVector128 simdVector = new MiscTypes.SIMDVector128();
            simdVector.X          = flVector.X;
            simdVector.Y          = flVector.Y;
            simdVector.Z          = flVector.Z;
            simdVector.DuplicateZ = flVector.Z;

            return(simdVector);
        }
Example #2
0
        private MiscTypes.FLVector ConvertVector(MiscTypes.SIMDVector128 simdVector)
        {
            MiscTypes.FLVector flVector = new MiscTypes.FLVector();
            flVector.X = simdVector.X;
            flVector.Y = simdVector.Y;
            flVector.Z = simdVector.Z;

            if (simdVector.Z != simdVector.DuplicateZ)
            {
                throw new Exception("simdVector.Z and simdVector.DuplicateZ not equal!");
            }

            return(flVector);
        }