|
Bomberman
|
A Vector2 data type. (templated to allow any kind of vector2) More...
#include <Vector2.hpp>
Public Member Functions | |
| Vector2 () | |
| Create a new nil vector2. More... | |
| Vector2 (T _x, T _y) | |
| Create a new vector2 representing a specific coordinate. More... | |
| ~Vector2 ()=default | |
| A default destructor. More... | |
| bool | operator== (const Vector2< T > &other) const |
| bool | operator!= (const Vector2< T > &other) const |
| template<typename T2 > | |
| Vector2< T > & | operator+= (const Vector2< T2 > &vec) |
| template<typename T2 > | |
| Vector2< T > | operator+ (const Vector2< T2 > &vec) const |
| template<typename T2 > | |
| Vector2< T > & | operator-= (const Vector2< T2 > &vec) |
| template<typename T2 > | |
| Vector2< T > | operator- (const Vector2< T2 > &vec) const |
| template<typename T2 > | |
| Vector2< T > & | operator*= (T2 d) |
| template<typename T2 > | |
| Vector2< T > | operator* (T2 d) const |
| template<typename T2 > | |
| Vector2< T > | operator* (const Vector2< T2 > &b) const |
| template<typename T2 > | |
| Vector2< T > | operator/= (const Vector2< T2 > &b) |
| template<typename T2 > | |
| Vector2< T > | operator/ (const Vector2< T2 > &b) const |
| template<typename T2 > | |
| Vector2< T > | operator/= (T2 b) |
| template<typename T2 > | |
| Vector2< T > | operator/ (T2 b) const |
| template<typename T2 > | |
| double | distance (const Vector2< T2 > &o) const |
| double | angle (const Vector2< T > &o) const |
| double | magnitude () const |
| Vector2< T > | normalize () |
| Vector2< T > | normalized () const |
| Vector2< T > | projection (const Vector2< T > &point) const |
| operator RAY::Vector2 () const requires(std | |
Public Attributes | |
| T | x |
| The x value of the vector. More... | |
| T | y |
| The y value of the vector. More... | |
A Vector2 data type. (templated to allow any kind of vector2)
|
inline |
Create a new nil vector2.
|
inline |
Create a new vector2 representing a specific coordinate.
|
default |
A default destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| T BBM::Vector2< T >::x |
The x value of the vector.
| T BBM::Vector2< T >::y |
The y value of the vector.
1.8.17