Added new Johan Code

This commit is contained in:
2016-05-20 13:00:04 +02:00
parent 1120a3e144
commit a8415db4ac
24 changed files with 2287 additions and 32 deletions
+10
View File
@@ -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)