#include <Coord.h>
Inheritance diagram for Conjecture::Coord:
This class is used both for Image coordinates (x/y), and for Image dimensions (width/height).
The 'x' and 'y' fields are public.
Public Member Functions | |
Coord (u2 x, u2 y) | |
Coord (const Coord &coord) | |
std::string | str (int prec=2) const |
Coord | operator+ (const Coord &c) const |
Coord | operator+ (u2 val) const |
Coord & | operator+= (const Coord &c) |
Coord & | operator+= (u2 val) |
Coord | operator- (const Coord &c) const |
Coord | operator- (u2 val) const |
Coord & | operator-= (const Coord &c) |
Coord & | operator-= (u2 val) |
bool | operator< (const Coord &c) const |
bool | withinBounds (const Coord &topleft, const Coord &bottomright) const |
Public Attributes | |
u2 | x |
u2 | y |
|
Returns true if receiver has smaller *area* than argument. Is this the semantics we want? |
|
Returns true if this Coord is within the region formed by 'topleft' and 'bottomright'. |