#include <point2d.H>
Public Methods | |
_point2d () | |
_point2d (Greal xx, Greal yy) | |
const Greal * | data () const |
P | operator% (const P &p) const |
P | operator+ (const V &v) const |
V | operator- (const P &p) const |
P | operator- (const V &v) const |
P | operator- () const |
P | operator * (Greal s) const |
P | operator/ (Greal s) const |
Greal | operator[] (int index) const |
Greal & | operator[] (int index) |
Greal | length () const |
Greal | lengthSqrd () const |
Greal | distSqrd (const P &p) const |
Greal | dist (const P &p) const |
bool | isEqual (const P &p, Greal epsSqrd=epsAbsSqrdMath()) const |
void | operator+= (const P &p) |
void | operator+= (const V &v) |
void | operator-= (const P &p) |
void | operator-= (const V &v) |
void | operator *= (Greal scalar) |
void | operator/= (Greal scalar) |
bool | operator== (const P &p) const |
bool | operator!= (const P &p) const |
Protected Attributes | |
Greal | _x |
Greal | _y |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|