public static bool XMQuaternionIsUnit(XMVector q) { XMVector difference = XMVector4.Length(q) - XMVector.One; return(XMVector4.Less(difference.Abs(), Internal.UnitQuaternionEpsilon)); }
public static bool XMPlaneIsUnit(XMVector plane) { XMVector difference = XMVector3.Length(plane) - XMVector.One; return(XMVector4.Less(difference.Abs(), Internal.UnitPlaneEpsilon)); }
public static bool XMVector3IsUnit(XMVector v) { XMVector difference = XMVector3.Length(v) - XMVector.One; return(XMVector4.Less(difference.Abs(), Internal.UnitVectorEpsilon)); }