#include <mcoord.h>
Public Methods | |
Coord2D (float x0=0, float y0=0) | |
Coord2D (const Coord3D &o) | |
Coord2D& | operator= (const Coord2D &o) |
void | operator+= (const Coord2D &o) |
Coord2D | operator+ (const Coord2D &o) const |
Coord2D | operator- (const Coord2D &o) const |
Coord2D | operator- () const |
Coord2D | operator * (const Coord2D &o) const |
Coord2D | operator * (double m) const |
Coord2D | operator/ (double d) const |
void | copy (const Coord2D &o) |
void | copy (const Coord3D &o) |
void | moveTo (float x1, float y1) |
void | moveBy (float x1, float y1) |
void | operator>> (OStream &o) const |
float | dist (const Coord2D &o) const |
float | sqdist (const Coord2D &o) const |
Public Attributes | |
float | x |
float | y |
Definition at line 22 of file mcoord.h.
|
Computes distance between this and the other point.
|
|
Computes squared distance between this and the other point. (faster)
|