Skip to content

Latest commit

 

History

History
90 lines (69 loc) · 2.24 KB

nf-directxmath-xmvector3nearequal.md

File metadata and controls

90 lines (69 loc) · 2.24 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMVector3NearEqual
XMVector3NearEqual function (directxmath.h)
Tests whether one 3D vector is near another 3D vector.
Use DirectX..XMVector3NearEqual
XMVector3NearEqual
XMVector3NearEqual method [DirectX Math Support APIs]
dxmath.xmvector3nearequal
dxmath\xmvector3nearequal.htm
dxmath
M:Microsoft.directx_sdk.comparison.XMVector3NearEqual(XMVECTOR,XMVECTOR,XMVECTOR)
12/05/2018
Use DirectX..XMVector3NearEqual, XMVector3NearEqual, XMVector3NearEqual method [DirectX Math Support APIs], dxmath.xmvector3nearequal
directxmath.h
DirectXMath.h
Windows
Use DirectX.
Windows
19H1
XMVector3NearEqual
directxmath/XMVector3NearEqual
c++
APIRef
kbSyntax
COM
directxmathvector.inl
XMVector3NearEqual

XMVector3NearEqual function

-description

Tests whether one 3D vector is near another 3D vector.

-parameters

-param V1 [in]

3D vector.

-param V2 [in]

3D vector.

-param Epsilon [in]

Tolerance value used for judging equality.

-returns

Returns true if V1 is near V2 and false otherwise.

-remarks

The following pseudocode demonstrates the operation of the function:

return ( ( abs( V1.x - V2.x ) <= Epsilon ) && 
         ( abs( V1.y - V2.y ) <= Epsilon ) && 
         ( abs( V1.z - V2.z ) <= Epsilon ));

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

-see-also

DirectXMath Library 3D Vector Comparison Functions