#include <fsVec2.h>
Collaboration diagram for fs::mth::Vec2_T< T >:
Definition at line 25 of file fsVec2.h.
Public Member Functions | |
Vec2_T () | |
Vec2_T (T x, T y) | |
Vec2_T (const Vec2_T &RHS) | |
Vec2_T & | operator= (const Vec2_T &RHS) |
bool | operator== (const Vec2_T &RHS) const |
bool | operator!= (const Vec2_T &RHS) const |
Vec2_T | operator- () const |
Vec2_T | operator+ (const Vec2_T &RHS) const |
Vec2_T & | operator+= (const Vec2_T &RHS) |
Vec2_T | operator- (const Vec2_T &RHS) const |
Vec2_T & | operator-= (const Vec2_T &RHS) |
T | operator * (const Vec2_T &RHS) const |
Vec2_T | operator * (T t) const |
Vec2_T & | operator *= (T t) |
T | Len () const |
Returns the length. | |
T | Len2 () const |
Returns the squared length. | |
T | Norm () |
Normalizes the vector and return its original length. | |
Public Attributes | |
T | x |
T | y |
fs::mth::Vec2_T< T >::Vec2_T | ( | ) | [inline] |
fs::mth::Vec2_T< T >::Vec2_T | ( | T | x, | |
T | y | |||
) | [inline] |
fs::mth::Vec2_T< T >::Vec2_T | ( | const Vec2_T< T > & | RHS | ) | [inline] |
T fs::mth::Vec2_T< T >::Len | ( | ) | const [inline] |
Returns the length.
Definition at line 168 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Len2(), and fs::mth::Sqrt().
Here is the call graph for this function:
T fs::mth::Vec2_T< T >::Len2 | ( | ) | const [inline] |
T fs::mth::Vec2_T< T >::Norm | ( | ) | [inline] |
Normalizes the vector and return its original length.
Definition at line 180 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Len2(), fs::mth::SqrtInv(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Here is the call graph for this function:
Vec2_T< T > fs::mth::Vec2_T< T >::operator * | ( | T | t | ) | const [inline] |
Definition at line 148 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Here is the call graph for this function:
T fs::mth::Vec2_T< T >::operator * | ( | const Vec2_T< T > & | RHS | ) | const [inline] |
Definition at line 142 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Vec2_T< T > & fs::mth::Vec2_T< T >::operator *= | ( | T | t | ) | [inline] |
Definition at line 160 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
bool fs::mth::Vec2_T< T >::operator!= | ( | const Vec2_T< T > & | RHS | ) | const [inline] |
Definition at line 102 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Vec2_T< T > fs::mth::Vec2_T< T >::operator+ | ( | const Vec2_T< T > & | RHS | ) | const [inline] |
Definition at line 114 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Here is the call graph for this function:
Vec2_T< T > & fs::mth::Vec2_T< T >::operator+= | ( | const Vec2_T< T > & | RHS | ) | [inline] |
Definition at line 120 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Vec2_T< T > fs::mth::Vec2_T< T >::operator- | ( | const Vec2_T< T > & | RHS | ) | const [inline] |
Definition at line 128 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Here is the call graph for this function:
Vec2_T< T > fs::mth::Vec2_T< T >::operator- | ( | ) | const [inline] |
Definition at line 108 of file fsVec2.h.
References fs::mth::Vec2_T< T >::Vec2_T(), fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Here is the call graph for this function:
Vec2_T< T > & fs::mth::Vec2_T< T >::operator-= | ( | const Vec2_T< T > & | RHS | ) | [inline] |
Definition at line 134 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
Vec2_T< T > & fs::mth::Vec2_T< T >::operator= | ( | const Vec2_T< T > & | RHS | ) | [inline] |
Definition at line 88 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
bool fs::mth::Vec2_T< T >::operator== | ( | const Vec2_T< T > & | RHS | ) | const [inline] |
Definition at line 96 of file fsVec2.h.
References fs::mth::Vec2_T< T >::x, and fs::mth::Vec2_T< T >::y.
T fs::mth::Vec2_T< T >::x |
T fs::mth::Vec2_T< T >::y |