PointF class
A PointF represents a coordinate or xy pair.
PointF::PointF()
Creates a PointF object p. The PointF is initialised to (0.0, 0.0) by default.
PointF::PointF(float64_t x, float64_t y)
Creates a Point object and initialises its coordinates.
float64_t PointF::getX()
float64_t PointF::getY()
Get the specified PointF coordinate.
PointF::setX(float64_t x)
PointF::setY(float64_t y)
PointF::setCoord(float64_t x, float64_t y)
Set the specified PointF coordinate.
PointF::operator ==
Returns true if the two PointFs are equal.
PointF::operator !=
Returns true if the two PointFs are not equal.
PointF::operator <
Returns true if the first point is 'less than' the second. First the X coordinate is compared; if equal then the Y coordinate is compared.
PointF::operator >
Returns true if the first point is 'greater than' the second. First the X coordinate is compared; if equal then the Y coordinate is compared.
PointF::operator +
A PointF plus a Vector returns a PointF transposed by the Vector.
A PointF plus a Point returns a PointF transposed by the PointF.
PointF::operator -
A PointF minus a PointF returns a Vector.
PointF::operator -
A PointF minus a Vector returns a PointF transposed by the Vector.
PointF::operator +=
A PointF plus a scalar (i.e. an integer) is offset, or moved, by the value of the scalar in both X and Y.
A PointF plus a PointF returns a PointF with the sum of the two PointFs X and Y values.
PointF::operator -=
A PointF minus a PointF returns a PointF with the differrence of the two PointFs X and Y values.
PointF::operator *=
A PointF times a scalar is scaled (multiplied) by the scalar.