mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +00:00
Implement lacking vector division operator
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user