Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XMScalarNearEqual method

Determines if two floating-point values are nearly equal.

Syntax


bool XMScalarNearEqual(
  [infloat S1,
  [infloat S2,
  [infloat Epsilon
);

Parameters

S1 [in]

First floating-point value to compare.

S2 [in]

Second floating-point value to compare.

Epsilon [in]

Tolerance to use when comparing S1 and S2.

Return value

Returns true if the absolute value of the difference between S1 and S2 is less than or equal to Epsilon. Returns false otherwise.

Remarks

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.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

DirectXMath Library Scalar Functions

 

 

Show:
© 2016 Microsoft