A storage unit for integral x and y coordinates. The x and y
coordinates can be accessed directly. For example:
   Point pt;
   pt.x = 1;
   pt.y = 2;
Method Summary: | ||
Point::Point | (); | |
Point::Point | (int x, int y); | |
void | Point::set | (int x, int y); |
double | Point::distance | (const Point& p1, const Point& p2); |
Point::Point |
Point::Point(); Constructs a new point. |
Point::Point | |||||||||
Point::Point(int x, int y); Constructs a new point with the specified x and y values. | |||||||||
|
void Point::set | |||||||||
void Point::set(int x, int y); Sets the x and y values. | |||||||||
|
double Point::distance | |||||||||
double Point::distance(const Point& p1, const Point& p2); Calculates the distance between the two points. Note that this is a static function. | |||||||||
|