Пример #1
0
        public static bool XMQuaternionIsUnit(XMVector q)
        {
            XMVector difference = XMVector4.Length(q) - XMVector.One;

            return(XMVector4.Less(difference.Abs(), Internal.UnitQuaternionEpsilon));
        }
Пример #2
0
        public static bool XMPlaneIsUnit(XMVector plane)
        {
            XMVector difference = XMVector3.Length(plane) - XMVector.One;

            return(XMVector4.Less(difference.Abs(), Internal.UnitPlaneEpsilon));
        }
Пример #3
0
        public static bool XMVector3IsUnit(XMVector v)
        {
            XMVector difference = XMVector3.Length(v) - XMVector.One;

            return(XMVector4.Less(difference.Abs(), Internal.UnitVectorEpsilon));
        }