|
|
@@ -24,6 +24,7 @@ inline Vector4 vector4(f32 x, f32 y, f32 z, f32 w)
|
|
|
return v;
|
|
|
}
|
|
|
|
|
|
+/// Adds the vector @a a to @a b and returns the result.
|
|
|
inline Vector4& operator+=(Vector4& a, const Vector4& b)
|
|
|
{
|
|
|
a.x += b.x;
|
|
|
@@ -33,6 +34,7 @@ inline Vector4& operator+=(Vector4& a, const Vector4& b)
|
|
|
return a;
|
|
|
}
|
|
|
|
|
|
+/// Subtracts the vector @a b from @a a and returns the result.
|
|
|
inline Vector4& operator-=(Vector4& a, const Vector4& b)
|
|
|
{
|
|
|
a.x -= b.x;
|
|
|
@@ -42,6 +44,7 @@ inline Vector4& operator-=(Vector4& a, const Vector4& b)
|
|
|
return a;
|
|
|
}
|
|
|
|
|
|
+/// Multiplies the vector @a a by the scalar @a k and returns the result.
|
|
|
inline Vector4& operator*=(Vector4& a, f32 k)
|
|
|
{
|
|
|
a.x *= k;
|