protected XMVector ConstrainToBoundary(XMVector v) { XMVector vMin = m_vMinBoundary; XMVector vMax = m_vMaxBoundary; // Constrain vector to a bounding box return(v.Clamp(vMin, vMax)); }