Exemplo n.º 1
0
        public static bool XMQuaternionIsUnit(XMVector q)
        {
            XMVector difference = XMVector4.Length(q) - XMVector.One;

            return(XMVector4.Less(difference.Abs(), Internal.UnitQuaternionEpsilon));
        }
Exemplo n.º 2
0
        public static bool XMPlaneIsUnit(XMVector plane)
        {
            XMVector difference = XMVector3.Length(plane) - XMVector.One;

            return(XMVector4.Less(difference.Abs(), Internal.UnitPlaneEpsilon));
        }
Exemplo n.º 3
0
        public static bool XMVector3IsUnit(XMVector v)
        {
            XMVector difference = XMVector3.Length(v) - XMVector.One;

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