XMComparisonAllInBounds function (directxmath.h)
Tests the comparison value to determine if all of the compared components are within set bounds.
bool XMComparisonAllInBounds(
[in] uint32_t CR
) noexcept;
[in] CR
Comparison value to test. The comparison value is typically retrieved using a recording version of a DirectXMath function such as XMVectorInBoundsR. The names of the recording functions end with an "R".
Returns true if all of the compared components within the set bounds.
The following code snippet highlights how this function might be used:
uint32_t comparisonValue = XMVectorInBoundsR( V, Bounds );
if( XMComparisonAllInBounds( comparisonValue ) )
{
DoStuff();
}
The DoStuff
function will be called only if all four components of V are within the volume
determined by Bounds and -Bounds.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h |