Generic integer x, y vector.
More...
#include <Types.hh>
Public Attributes |
| int | x |
| | x data
|
| int | y |
| | y data
|
Friends |
| std::ostream & | operator<< (std::ostream &_out, const Vector2i &_pt) |
| | Stream insertion operator.
|
| std::istream & | operator>> (std::istream &_in, Vector2i &_pt) |
| | Stream extraction operator.
|
Detailed Description
Generic integer x, y vector.
Constructor & Destructor Documentation
| sdf::Vector2i::Vector2i |
( |
int |
_x = 0, |
|
|
int |
_y = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| [in] | _x | value along x |
| [in] | _y | value along y |
Member Function Documentation
| bool sdf::Vector2i::operator== |
( |
const Vector2i & |
_pt | ) |
const |
|
inline |
Equality operator.
- Parameters
-
| _pt | The vector to compare with |
- Returns
- True if component have the same values, false otherwise
References x, and y.
Friends And Related Function Documentation
| std::ostream& operator<< |
( |
std::ostream & |
_out, |
|
|
const Vector2i & |
_pt |
|
) |
| |
|
friend |
Stream insertion operator.
- Parameters
-
| [in] | _out | output stream |
| [in] | pt | Vector2i to output |
- Returns
- the stream
| std::istream& operator>> |
( |
std::istream & |
_in, |
|
|
Vector2i & |
_pt |
|
) |
| |
|
friend |
Stream extraction operator.
- Parameters
-
| [in] | _in | input stream |
| [in] | _pt | Vector2i to read values into |
- Returns
- The stream
Member Data Documentation
The documentation for this class was generated from the following file: