Public Member Functions | |
bool | operator!= (const Vector2 &v) const |
Vector2 | operator* (const Vector2 &v) const |
Vector2 | operator* (float value) const |
Vector2 & | operator*= (const Vector2 &v) |
Vector2 & | operator*= (float v) |
Vector2 | operator+ (const Vector2 &v) const |
Vector2 | operator+ (float value) const |
Vector2 & | operator+= (const Vector2 &v) |
Vector2 | operator- () const |
Vector2 | operator- (const Vector2 &v) const |
Vector2 | operator- (float value) const |
Vector2 & | operator-= (const Vector2 &v) |
Vector2 | operator/ (const Vector2 &v) const |
Vector2 | operator/ (float value) const |
Vector2 & | operator/= (const Vector2 &v) |
Vector2 & | operator/= (float v) |
Vector2 & | operator= (const Vector2 &v) |
Vector2 & | operator= (Vector2 &&v) noexcept |
bool | operator== (const Vector2 &v) const |
std::string | toString () const |
Vector2 (const Vector2 &v) | |
Vector2 (float x, float y) | |
Vector2 (Vector2 &&v) noexcept | |
~Vector2 () | |
Private Attributes | |
float | x |
float | y |
Friends | |
Vector2 | operator* (float f, const Vector2 &v) |
Vector2 | operator+ (float f, const Vector2 &v) |
Vector2 | operator- (float f, const Vector2 &v) |
Vector2 | operator/ (float f, const Vector2 &v) |
Definition at line 18 of file test_operator_overloading.cpp.
|
inline |
Definition at line 20 of file test_operator_overloading.cpp.
|
inline |
Definition at line 21 of file test_operator_overloading.cpp.
|
inlinenoexcept |
Definition at line 22 of file test_operator_overloading.cpp.
|
inline |
Definition at line 39 of file test_operator_overloading.cpp.
|
inline |
Definition at line 91 of file test_operator_overloading.cpp.
Definition at line 52 of file test_operator_overloading.cpp.
|
inline |
Definition at line 50 of file test_operator_overloading.cpp.
Definition at line 74 of file test_operator_overloading.cpp.
|
inline |
Definition at line 64 of file test_operator_overloading.cpp.
Definition at line 46 of file test_operator_overloading.cpp.
|
inline |
Definition at line 49 of file test_operator_overloading.cpp.
Definition at line 54 of file test_operator_overloading.cpp.
|
inline |
Definition at line 45 of file test_operator_overloading.cpp.
Definition at line 47 of file test_operator_overloading.cpp.
|
inline |
Definition at line 48 of file test_operator_overloading.cpp.
Definition at line 59 of file test_operator_overloading.cpp.
Definition at line 53 of file test_operator_overloading.cpp.
|
inline |
Definition at line 51 of file test_operator_overloading.cpp.
Definition at line 79 of file test_operator_overloading.cpp.
|
inline |
Definition at line 69 of file test_operator_overloading.cpp.
Definition at line 26 of file test_operator_overloading.cpp.
Definition at line 32 of file test_operator_overloading.cpp.
|
inline |
Definition at line 90 of file test_operator_overloading.cpp.
|
inline |
Definition at line 41 of file test_operator_overloading.cpp.
Definition at line 87 of file test_operator_overloading.cpp.
Definition at line 85 of file test_operator_overloading.cpp.
Definition at line 86 of file test_operator_overloading.cpp.
Definition at line 88 of file test_operator_overloading.cpp.
|
private |
Definition at line 94 of file test_operator_overloading.cpp.
|
private |
Definition at line 94 of file test_operator_overloading.cpp.