Function directx_math::XMVector3InBounds [−][src]
pub fn XMVector3InBounds(V: FXMVECTOR, Bounds: FXMVECTOR) -> bool
Tests whether the components of a 3D vector are within set bounds.
Parameters
V
3D vector to test.
Bounds
3D vector that determines the bounds.
Return value
Returns true
if both the x
, y
, and z-component
s of V
are within the set bounds, and false
otherwise.
Remarks
The following pseudocode demonstrates the operation of the function:
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVector3InBounds