#include <Pt/Gfx/Point.h>
Integer X and Y coordinates. More...
Public Member Functions | |
| bool | isOrigin () const |
| Returns true if both X and Y are zero. | |
| PointI | operator- () const |
| Returns the negation of this point. | |
PointI is the integer counterpart of Point. Image pixels, view origins, and rounded drawing coordinates use this type. It is not a logical drawing point; widen it to Point when a painter needs a floating-point coordinate.
Arithmetic matches Point but uses Int. Equality is exact. There is no rounding API on this type: rounding is how a Point becomes a PointI.