ROME 2 Lab5
Point Class Reference
This class stores the coordinates of a point in two dimensions. More...
#include <Point.h>
Public Member Functions | |
| Point () | |
| Creates a Point object. | |
| Point (float r, float alpha) | |
| Creates a Point object from given polar coordinates. | |
| virtual | ~Point () |
| Deletes this object. | |
| float | distance () |
| Calculates the distance of this point from the origin. | |
| float | distance (Point &point) |
| Calculates the distance between this point and a given point. | |
| float | manhattanDistance () |
| Calculates the manhattan distance of this point from the origin. | |
| float | manhattanDistance (Point &point) |
| Calculates the manhattan distance between this point and a given point. | |
Detailed Description
This class stores the coordinates of a point in two dimensions.
Definition at line 15 of file Point.h.
Constructor & Destructor Documentation
| Point | ( | float | r, |
| float | alpha | ||
| ) |
Member Function Documentation
| float distance | ( | ) |
| float distance | ( | Point & | point ) |
| float manhattanDistance | ( | ) |
Generated on Thu Jul 14 2022 18:53:11 by
1.7.2