mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Implement lacking vector division operator
This commit is contained in:
parent
2c21114540
commit
997af183f0
@ -37,6 +37,11 @@ public:
|
||||
return Vector(x * b, y * b, z * b);
|
||||
}
|
||||
|
||||
Vector operator / (const float b) const
|
||||
{
|
||||
return Vector(x / b, y / b, z / b);
|
||||
}
|
||||
|
||||
Vector operator + (const Vector& b) const
|
||||
{
|
||||
return Vector(x + b.x, y + b.y, z + b.z);
|
||||
|
Loading…
x
Reference in New Issue
Block a user