#include <point.h>
Public Methods | |
MSLPoint () | |
MSLPoint (double x, double y) | |
~MSLPoint () | |
double | xcoord () const |
double | ycoord () const |
void | normalize () const |
int | dim () const |
double | sqr_dist (const MSLPoint &q) const |
double | xdist (const MSLPoint &q) const |
double | ydist (const MSLPoint &q) const |
double | distance (const MSLPoint &q) const |
double | distance () const |
double | angle (const MSLPoint &q, const MSLPoint &r) const |
MSLPoint | translate_by_angle (double alpha, double d) const |
MSLPoint | translate (double dx, double dy) const |
MSLPoint | rotate (const MSLPoint &q, double a) const |
MSLPoint | rotate (double a) const |
MSLPoint | rotate90 (const MSLPoint &q) const |
MSLPoint | rotate90 () const |
MSLPoint | reflect (const MSLPoint &q, const MSLPoint &r) const |
MSLPoint | reflect (const MSLPoint &q) const |
bool | operator== (const MSLPoint &q) const |
bool | operator!= (const MSLPoint &q) const |
Friends | |
ostream & | operator<< (ostream &O, const MSLPoint &p) |
istream & | operator>> (istream &I, MSLPoint &p) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|