XMMin

Compares two numeric data type instances, or two instances of an object which supports an overload of <, and returns the smaller one of the two instances. The data type of the arguments and the return value is the same.

Syntax

T XMMin(
         T a,
         T b
)  

Parameters

a
Type: T 

Specifies the first of two objects.

b
Type: T 

Specifies the two of two objects.

Return value

Type: T 

Returns the smaller of the two input objects.

Remarks

XMMin is a template and the T type is specified when the template is instantiated.

Note

The XMMin template is new for DirectXMath and is not available for XNAMath 2.x. XMMin is available as a macro in XNAMath 2.x.

Requirements

Header: Declared in directxmath.h.