This struct contains real-valued x and y fields. More...
#include "gtypes.h"
Public Member Functions | |
| GPoint(double x, double y) | |
Creates a GPoint object with the specified x and y coordinates. More... | |
| GPoint() | |
| string | toString() const |
Converts the GPoint to a string in the form "(</code><i>x</i><code>,</code> <i>y</i><code>)". More... | |
Public Attributes | |
| double | x |
| double | y |
This struct contains real-valued x and y fields.
It is used to represent a location on the graphics plane.
| GPoint | ( | ) |
| string toString | ( | ) | const |
Converts the GPoint to a string in the form "(</code><i>x</i><code>,</code> <i>y</i><code>)".
Compares two GPoint objects for inequality.
Multiplies the x and y coordinates of the given point by the given scale factor and returns the scaled point.
Relational operators that compare points by x-coordinate and then by y-coordinate.
|
friend |
Writes the given point to the given output stream.
Relational operators that compare points by x-coordinate and then by y-coordinate.
Compares two GPoint objects for equality.
Relational operators that compare points by x-coordinate and then by y-coordinate.
Relational operators that compare points by x-coordinate and then by y-coordinate.
| double x |
| double y |
1.8.14