Luna::Float2::operator+=

Float2 & operator+=(const Float2 &v)

Adds this vector with one vector, and stores the result to this vector.

This function performs the following operations:

this->[x](struct_luna_1_1_float2_1a6b05cac69c0301ab972c27ce208373be.md) += [v](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a9e3669d19b675bd57058fd4664205d2a.md).x;
this->[y](struct_luna_1_1_float2_1ab7291adeb8828a0cba3aedf332c2053d.md) += [v](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a9e3669d19b675bd57058fd4664205d2a.md).y;

Parameters

  • in v

    The vector to add.

Return value

Returns *this.