#include <mapbasic.h>
Public Member Functions | |
Vector_2 () | |
Vector_2 (Type t) | |
Vector_2 (Null_vector) | |
Vector_2 (Type a, Type b) | |
Type & | operator[] (const int i) |
const Type & | operator[] (const int &i) const |
Type | x () const |
Type | y () const |
Vector_2 & | operator+= (const Vector_2 &v) |
Assign operators. | |
Vector_2 & | operator-= (const Vector_2 &v) |
Vector_2 & | operator*= (const Type t) |
Vector_2 & | operator/= (const Type t) |
Vector_2 | operator+ (const Vector_2 &v) const |
Arithmatic operators. | |
Vector_2 | operator- (const Vector_2 &v) const |
Vector_2 | operator* (const Type t) const |
Vector_2 | operator/ (const Type t) const |
Type | operator* (const Vector_2 &v) const |
Vector_2 | operator- () const |
Type | squared_norm () const |
Type | norm () const |
Vector_2 & | normalize () |
Vector_2 & | neg () |
bool | operator== (const Vector_2 &p) const |
bool | operator!= (const Vector_2 &p) const |
bool | operator< (const Vector_2 &v) const |
bool | is_null () const |
Protected Attributes | |
Type | _x |
Type | _y |
Definition at line 178 of file mapbasic.h.
Definition at line 180 of file mapbasic.h.
Referenced by Vector_2< T >::operator*(), Vector_2< T >::operator+(), Vector_2< T >::operator-(), and Vector_2< T >::operator/().
Definition at line 181 of file mapbasic.h.
Vector_2< Type >::Vector_2 | ( | Null_vector | ) | [inline] |
Definition at line 182 of file mapbasic.h.
Definition at line 183 of file mapbasic.h.
Definition at line 185 of file mapbasic.h.
Definition at line 187 of file mapbasic.h.
Referenced by Point_2< T >::operator!=(), Vector_2< T >::operator!=(), Point_2< T >::operator+(), Point_2< T >::operator+=(), Point_2< T >::operator-(), Point_2< T >::operator-=(), Point_2< T >::operator==(), and Vector_2< T >::operator==().
Definition at line 188 of file mapbasic.h.
Referenced by Point_2< T >::operator!=(), Vector_2< T >::operator!=(), Point_2< T >::operator+(), Point_2< T >::operator+=(), Point_2< T >::operator-(), Point_2< T >::operator-=(), Point_2< T >::operator==(), and Vector_2< T >::operator==().
Definition at line 193 of file mapbasic.h.
Definition at line 195 of file mapbasic.h.
Definition at line 197 of file mapbasic.h.
Vector_2 Vector_2< Type >::operator- | ( | const Vector_2< Type > & | v | ) | const [inline] |
Definition at line 203 of file mapbasic.h.
Definition at line 205 of file mapbasic.h.
Definition at line 207 of file mapbasic.h.
Definition at line 209 of file mapbasic.h.
Definition at line 212 of file mapbasic.h.
Definition at line 215 of file mapbasic.h.
Referenced by Vector_2< T >::normalize().
Definition at line 217 of file mapbasic.h.
Definition at line 219 of file mapbasic.h.
Definition at line 225 of file mapbasic.h.
bool Vector_2< Type >::operator== | ( | const Vector_2< Type > & | p | ) | const [inline] |
Definition at line 229 of file mapbasic.h.
bool Vector_2< Type >::operator!= | ( | const Vector_2< Type > & | p | ) | const [inline] |
Definition at line 232 of file mapbasic.h.
Definition at line 235 of file mapbasic.h.
Referenced by Point_2< T >::operator<().
Definition at line 238 of file mapbasic.h.
Definition at line 241 of file mapbasic.h.
Referenced by Vector_2< T >::is_null(), Vector_2< T >::neg(), Vector_2< T >::normalize(), Vector_2< T >::operator*(), Vector_2< T >::operator*=(), Vector_2< T >::operator+(), Vector_2< T >::operator+=(), Vector_2< T >::operator-(), Vector_2< T >::operator-=(), Vector_2< T >::operator/(), Vector_2< T >::operator/=(), Vector_2< T >::operator<(), Vector_2< T >::operator[](), and Vector_2< T >::x().
Definition at line 241 of file mapbasic.h.
Referenced by Vector_2< T >::is_null(), Vector_2< T >::neg(), Vector_2< T >::normalize(), Vector_2< T >::operator*(), Vector_2< T >::operator*=(), Vector_2< T >::operator+(), Vector_2< T >::operator+=(), Vector_2< T >::operator-(), Vector_2< T >::operator-=(), Vector_2< T >::operator/(), Vector_2< T >::operator/=(), Vector_2< T >::operator<(), Vector_2< T >::operator[](), and Vector_2< T >::y().