XMMax

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

Syntax

T XMMax(
         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 

Return the larger of the two input objects.

Remarks

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

Note

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

Requirements

Header: Declared in directxmath.h.