Added new Johan Code
This commit is contained in:
+10
@@ -24,6 +24,16 @@ float& Vec3f::operator [](int index)
|
||||
return v[index];
|
||||
}
|
||||
|
||||
Vec3f Vec3f::operator+(const Vec3f & other)
|
||||
{
|
||||
return Vec3f(x + other.x, y + other.y, z + other.z);
|
||||
}
|
||||
|
||||
Vec3f Vec3f::operator/(float value)
|
||||
{
|
||||
return Vec3f(x / value, y / value, z / value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Vec2f::Vec2f(float x, float y)
|
||||
|
||||
Reference in New Issue
Block a user