예제 #1
0
        protected XMVector ConstrainToBoundary(XMVector v)
        {
            XMVector vMin = m_vMinBoundary;
            XMVector vMax = m_vMaxBoundary;

            // Constrain vector to a bounding box
            return(v.Clamp(vMin, vMax));
        }