Max#

template<typename T>
XVector2<T> Max(
const XVector2<T> &a,
const XVector2<T> &b,
)#

Computes the component-wise maximum of two vectors.

Template Parameters:

T – The component type of the vectors.

Parameters:
  • a[in] The first vector.

  • b[in] The second vector.

Returns:

A new XVector2 with each component being the maximum of the corresponding components.