#include <Vector.h>
Inheritance diagram for Teddy::Maths::TVector:
Public Methods | |
TVector () | |
TVector (const int a, const int b, const int c) | |
TVector (const float a, const float b, const float c) | |
TVector (const double a, const double b, const double c) | |
TVector (const T t) | |
TVector (const T *pt) | |
TVector (const TVector< double > &v) | |
TVector (const TVector< float > &v) | |
TVector (const TVector< int > &v) | |
TVector (const Quaternion &q) | |
operator T * () | |
T & | operator[] (const int n) |
operator const T * () const | |
T | operator[] (const int n) const |
TVector< T > | operator- () const |
void | operator= (const T t) |
void | operator= (const T *pt) |
void | operator= (const TVector< T > &vec) |
bool | operator== (const TVector< T > &vec) const |
bool | operator!= (const TVector< T > &vec) const |
int | getMaxIndex () const |
TVector< T > | operator+ (const T t) const |
TVector< T > | operator- (const T t) const |
TVector< T > | operator * (const T t) const |
TVector< T > | operator/ (const T t) const |
const TVector< T > & | operator+= (const T t) |
const TVector< T > & | operator-= (const T t) |
const TVector< T > & | operator *= (const T t) |
const TVector< T > & | operator/= (const T t) |
TVector< T > | operator+ (const TVector< T > &vec) const |
TVector< T > | operator- (const TVector< T > &vec) const |
TVector< T > | operator * (const TVector< T > &vec) const |
TVector< T > | operator/ (const TVector< T > &vec) const |
const TVector< T > & | operator+= (const TVector< T > &vec) |
const TVector< T > & | operator-= (const TVector< T > &vec) |
const TVector< T > & | operator *= (const TVector< T > &vec) |
const TVector< T > & | operator/= (const TVector< T > &vec) |
T | operator| (const TVector< T > &vec) const |
TVector< T > | operator^ (const TVector< T > &vec) const |
const TVector< T > & | operator^= (const TVector< T > &vec) |
T | magnitudeSquared () const |
T | magnitude () const |
T | distanceSquared (const TVector< T > &vec) const |
T | distance (const TVector< T > &vec) const |
TVector< T > | midpoint (const TVector< T > &vec) const |
TVector< T > | average (const TVector< T > &vec) const |
void | normalize () |
double | angle (const TVector< T > &vec) const |
TVector< T > | reflect (const TVector< T > &n) const |
TVector< T > | rotate (const T tAngle, const Vector &n) const |
Public Attributes | |
T | v [3] |
Definition at line 74 of file Vector.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 165 of file Vector.h. Referenced by Teddy::Maths::TVector< float >::normalize, and Teddy::Maths::TVector< float >::reflect. |
|
Definition at line 164 of file Vector.h. Referenced by Teddy::Maths::TVector< float >::magnitude. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|