42 std::string
str()
const;
46 return x == v.
x &&
y == v.
y;
50 return x != v.
x ||
y != v.
y;
116 return v1.
x * v2.
x + v1.
y * v2.
y;
Vector2f & operator/=(const Vector2f &v)
Definition: Vector2f.hpp:105
constexpr Vector2f(float v)
Definition: Vector2f.hpp:38
Definition: GameController.hpp:7
Vector2f & operator*=(float scale)
Definition: Vector2f.hpp:87
float x
Definition: Vector2f.hpp:25
constexpr bool operator!=(const Vector2f &v) const
Definition: Vector2f.hpp:49
float t
Definition: Vector2f.hpp:28
Vector2f & operator-=(const Vector2f &v)
Definition: Vector2f.hpp:69
constexpr Vector2f operator*(const Vector2f &v) const
Definition: Vector2f.hpp:75
constexpr Vector2f operator*(float scale) const
Definition: Vector2f.hpp:84
static const Vector2f ZERO
Definition: Vector2f.hpp:31
constexpr Vector2f operator/=(const Vector2f &v) const
Definition: Vector2f.hpp:102
float y
Definition: Vector2f.hpp:28
bool fuzzyEqual(const Vector2f &, float threshold=.02f) const
Definition: Vector2f.cpp:33
constexpr Vector2f(float x, float y)
Definition: Vector2f.hpp:36
float v
Definition: Vector2f.hpp:28
std::string str() const
Definition: Vector2f.cpp:27
Vector2f & operator/=(float divisor)
Definition: Vector2f.hpp:96
constexpr Vector2f operator-(const Vector2f &v) const
Definition: Vector2f.hpp:66
constexpr float dot(const Vector2f &v1, const Vector2f &v2)
Definition: Vector2f.hpp:115
constexpr Vector2f operator+(const Vector2f &v) const
Definition: Vector2f.hpp:57
float u
Definition: Vector2f.hpp:25
float s
Definition: Vector2f.hpp:25
2-dimensional float-based vector/point storage and manipulation struct
Definition: Vector2f.hpp:23
float g
Definition: Vector2f.hpp:28
float r
Definition: Vector2f.hpp:25
static const Vector2f UP
Definition: Vector2f.hpp:31
Vector2f & operator+=(const Vector2f &v)
Definition: Vector2f.hpp:60
constexpr Vector2f operator-() const
Definition: Vector2f.hpp:53
float length() const
Definition: Vector2f.cpp:23
constexpr Vector2f operator/(float divisor) const
Definition: Vector2f.hpp:93
constexpr Vector2f()
Definition: Vector2f.hpp:34
constexpr bool operator==(const Vector2f &v) const
Definition: Vector2f.hpp:45
Vector2f & operator*=(const Vector2f &v)
Definition: Vector2f.hpp:78
Vector2f normalize(const Vector2f &v)
Definition: Vector2f.hpp:118