Stores discrete pixel coordinates. More...
#include <Pixel.h>
Public Member Functions | |
| bool | operator!= (Pixel &rhs) |
| Pixel | operator* (float rhs) |
| Pixel | operator/ (float rhs) |
| bool | operator== (Pixel &rhs) |
| Pixel (int x=0, int y=0) | |
| void | setX (int x) |
| void | setY (int y) |
| Point2D | toPoint2D () |
| std::vector< Point2D > | vertices () |
| int | x () const |
| int | y () const |
| ~Pixel () | |
Private Attributes | |
| int | m_X |
| int | m_Y |
| Pixel::Pixel | ( | int | x = 0, |
| int | y = 0 |
||
| ) | [inline] |
| Pixel::~Pixel | ( | ) | [inline] |
| void Pixel::setX | ( | int | x | ) | [inline] |
| void Pixel::setY | ( | int | y | ) | [inline] |
| Point2D Pixel::toPoint2D | ( | ) | [inline] |
| std::vector<Point2D> Pixel::vertices | ( | ) | [inline] |
int Pixel::m_X [private] |
int Pixel::m_Y [private] |