mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 14:41:49 +01:00
Added the Grid, Camera, Level system
Basic player Started (Barely) on the TextureManager And other fixes
This commit is contained in:
@@ -20,6 +20,21 @@ Point2f::Point2f()
|
||||
Point2f::Point2f(float x, float y)
|
||||
: x { x }, y { y } {
|
||||
}
|
||||
Point2f Point2f::operator+(const Point2f& other) const {
|
||||
return Point2f { x + other.x, y + other.y };
|
||||
}
|
||||
Point2f Point2f::operator*(float other) const {
|
||||
return Point2f { x * other, y * other };
|
||||
}
|
||||
Point2f Point2f::operator*(const Point2f& other) const {
|
||||
return Point2f { x * other.x, y * other.y };
|
||||
}
|
||||
Point2f Point2f::operator*(int other) const {
|
||||
return Point2f { x * float(other), y * float(other) };
|
||||
}
|
||||
Point2f Point2f::operator/(float other) const {
|
||||
return Point2f { x / other, y / other };
|
||||
}
|
||||
|
||||
// Point2f::Point2f(int x, int y)
|
||||
// : x { (float)x }, y { (float)y } {
|
||||
|
||||
Reference in New Issue
Block a user