Generic integer x, y vector.
More...
#include <Types.hh>
Generic integer x, y vector.
- Deprecated:
- Use ignition::math::Vector2i
sdf::Vector2i::Vector2i |
( |
int |
_x = 0 , |
|
|
int |
_y = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _x | value along x |
[in] | _y | value along y |
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.
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
The documentation for this class was generated from the following file: