47 return this->position + this->size;
57 return this->position;
110template <
typename T>
struct Vec3
135 return Vec3<T>(
x * scalar,
y * scalar,
z * scalar);
158 return x * other.
x +
y * other.
y +
z * other.
z;
163 return Vec3<T>(
y * other.
z -
z * other.
y,
z * other.
x -
x * other.
z,
x * other.
y -
y * other.
x);
Point2D< T > operator+(const Point2D< T > &other) const
bool operator==(const Point2D< T > &other) const =default
Point2D< T > & operator=(const Point2D< T > &other)
Point2D< T > operator-(const Point2D< T > &other) const
bool operator==(const Rectangle< T > &other) const =default
Point2D< T > topRight() const
Point2D< T > bottomRight() const
Point2D< T > bottomLeft() const
bool checkCollision(const Rectangle< T > &other, bool ignoreTouching=true) const
Point2D< T > topLeft() const
T dot(const Vec3< T > &other) const
bool operator==(const Vec3< T > &other) const =default
Vec3< T > & operator+=(const Vec3< T > &other)
Vec3< T > cross(const Vec3< T > &other) const
Vec3< T > operator*(T scalar) const
Vec3< T > operator-(const Vec3< T > &other) const
Vec3< T > operator+(const Vec3< T > &other) const
Vec3< T > & operator=(const Vec3< T > &other)