Generic integer x, y vector. More...
#include <Types.hh>
Public Member Functions | |
Vector2i (int _x=0, int _y=0) | |
Constructor. More... | |
bool | operator== (const Vector2i &_pt) const |
Equality operator. More... | |
Public Attributes | |
int | x |
x data More... | |
int | y |
y data More... | |
Friends | |
std::ostream & | operator<< (std::ostream &_out, const Vector2i &_pt) |
Stream insertion operator. More... | |
std::istream & | operator>> (std::istream &_in, Vector2i &_pt) |
Stream extraction operator. More... | |
Generic integer x, y vector.
|
inline |
Constructor.
[in] | _x | value along x |
[in] | _y | value along y |
|
inline |
|
friend |
Stream insertion operator.
[in] | _out | output stream |
[in] | pt | Vector2i to output |
|
friend |
Stream extraction operator.
[in] | _in | input stream |
[in] | _pt | Vector2i to read values into |
int sdf::Vector2i::x |
x data
Referenced by operator==().
int sdf::Vector2i::y |
y data
Referenced by operator==().