Luna::Float4::operator-=

Float4 & operator-=(f32 s)

Subtracts this vector with one scalar, and stores the result to this vector.

This function performs the following operations:

this->[x](struct_luna_1_1_float4_1a6b05cac69c0301ab972c27ce208373be.md) -= [s](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a03c7c0ace395d80182db07ae2c30f034.md);
this->[y](struct_luna_1_1_float4_1ab7291adeb8828a0cba3aedf332c2053d.md) -= [s](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a03c7c0ace395d80182db07ae2c30f034.md);
this->[z](struct_luna_1_1_float4_1aac280fcf3516d20b5e3dec5fa770ac50.md) -= [s](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a03c7c0ace395d80182db07ae2c30f034.md);
this->[w](struct_luna_1_1_float4_1adb390a9d0e1ce3b726f016e547104e35.md) -= [s](group___h_i_d_1gga912f74cfa86bfd7af0ee6bb9010eba51a03c7c0ace395d80182db07ae2c30f034.md);

Parameters

  • in s

    The scalar to subtract.

Return value

Returns *this.