#include <vector2d.H>
Public Methods | |
_vec2d () | |
_vec2d (Greal x, Greal y) | |
V | operator+ (const V &v) const |
V | operator- (const V &v) const |
Greal | operator * (const V &v) const |
V | operator- () const |
V | operator * (Greal s) const |
V | operator/ (Greal s) const |
Greal | operator[] (int index) const |
Greal & | operator[] (int index) |
Greal | length () const |
Greal | lengthSqrd () const |
V | normalize () const |
V | perpend () const |
Greal | dist (const V &v) const |
Greal | distSqrd (const V &v) const |
bool | isEqual (const V &v, Greal epsSqrd=epsNorSqrdMath()) const |
bool | isExactNull () const |
bool | isParallel (const V &) const |
void | operator+= (const V &v) |
void | operator-= (const V &v) |
void | operator *= (Greal s) |
void | operator/= (Greal s) |
bool | operator== (const V &v) const |
bool | operator!= (const V &v) const |
Greal | angle (const V &) const |
bool | isNull (Greal epsSqrdMath=epsNorSqrdMath()) const |
Protected Attributes | |
Greal | _x |
Greal | _y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|