refinery
RAW file processor
|
A pixel coordinate counted from the top-left. More...
#include <refinery/image.h>
Public Member Functions | |
Point () | |
Empty constructor. | |
Point (int row, int col) | |
Constructor. | |
Point (const Point &rhs) | |
Copy constructor. | |
Point | operator+ (const Point &point) const |
Add an offset to this Point. | |
Point | operator- (const Point &point) const |
Subtract an offset from this Point. | |
bool | operator== (const Point &rhs) const |
Compare this Point to another. | |
bool | operator!= (const Point &rhs) const |
Compare this Point to another. | |
Public Attributes | |
int | row |
Pixel row. | |
int | col |
Pixel column. |
A pixel coordinate counted from the top-left.
This can also represent a pixel-coordinate offset. In other words, you can add or subtract Point instances.
refinery::Point::Point | ( | int | row, |
int | col | ||
) | [inline] |
refinery::Point::Point | ( | const Point & | rhs | ) | [inline] |
bool refinery::Point::operator!= | ( | const Point & | rhs | ) | const [inline] |
bool refinery::Point::operator== | ( | const Point & | rhs | ) | const [inline] |