operator*#

template<typename T>
XVector2<T> operator*(
T lhs,
const XVector2<T> &rhs,
)#

Scales a vector by a scalar value (left-hand side scalar).

Template Parameters:

T – The component type of the vector.

Parameters:
  • lhs[in] The scalar multiplier.

  • rhs[in] The vector to scale.

Returns:

A new XVector2 representing the scaled vector.