Luna::operator*

Float3 operator*(f32 s, const Float3 &v)

Multiplies one vector with one scalar.

This function performs the following operations:

[Float3](struct_luna_1_1_float3.md) r;
r.x = v.x * s;
r.y = v.y * s;
r.z = v.z * s;
return r;

Parameters

  • in s

    The scalar.

  • in v

    The vector.

Return value

Returns the result vector.