#include <Vector2.h>
Inheritance diagram for Teddy::Maths::TVector2:
Public Methods | |
TVector2 () | |
TVector2 (const int a, const int b) | |
TVector2 (const float a, const float b) | |
TVector2 (const double a, const double b) | |
TVector2 (const TVector2< double > &v) | |
TVector2 (const TVector2< float > &v) | |
TVector2 (const TVector2< int > &v) | |
T & | operator[] (const int n) |
T | operator[] (const int n) const |
TVector2< T > | operator- () const |
void | operator= (const TVector2< T > &vec) |
bool | operator== (TVector2< T > &vec) const |
bool | operator!= (TVector2< T > &vec) const |
TVector2< T > | operator+ (const T t) const |
TVector2< T > | operator- (const T t) const |
TVector2< T > | operator * (const T t) const |
TVector2< T > | operator/ (const T t) const |
const TVector2< T > & | operator+= (const T t) |
const TVector2< T > & | operator-= (const T t) |
const TVector2< T > & | operator *= (const T t) |
const TVector2< T > & | operator/= (const T t) |
TVector2< T > | operator+ (const TVector2< T > &vec) const |
TVector2< T > | operator- (const TVector2< T > &vec) const |
TVector2< T > | operator * (const TVector2< T > &vec) const |
TVector2< T > | operator/ (const TVector2< T > &vec) const |
const TVector2< T > & | operator+= (const TVector2< T > &vec) |
const TVector2< T > & | operator-= (const TVector2< T > &vec) |
const TVector2< T > & | operator *= (const TVector2< T > &vec) |
const TVector2< T > & | operator/= (const TVector2< T > &vec) |
T | operator| (const TVector2< T > &vec) const |
T | magnitudeSquared () const |
T | magnitude () const |
T | distanceSquared (const TVector2< T > &vec) const |
T | distance (const TVector2< T > &vec) const |
TVector2< T > | midpoint (const TVector2< T > &vec) const |
TVector2< T > | average (const TVector2< T > &vec) const |
void | normalize () |
double | angle (const TVector2< T > &vec) const |
TVector2< T > | reflect (const TVector2< T > &n) const |
Public Attributes | |
T | v [2] |
Definition at line 72 of file Vector2.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 143 of file Vector2.h. Referenced by Teddy::Maths::TVector2< int >::normalize, and Teddy::Maths::TVector2< int >::reflect. |
|
Definition at line 142 of file Vector2.h. Referenced by Teddy::Maths::TVector2< int >::magnitude. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|