17 #ifndef _GAZEBO_VECTOR2I_HH_
18 #define _GAZEBO_VECTOR2I_HH_
23 #include <ignition/math/Vector2.hh>
44 public:
Vector2i(
const int &_x,
const int &_y);
52 public:
Vector2i(
const ignition::math::Vector2i &_pt);
60 public:
int Distance(
const Vector2i &_pt)
const;
63 public:
void Normalize();
68 public:
void Set(
int _x,
int _y);
83 public:
Vector2i &operator =(
const ignition::math::Vector2i &_v);
88 public:
const Vector2i &operator =(
int _value);
126 public:
const Vector2i operator/(
int _v)
const;
132 public:
const Vector2i &operator/=(
int _v);
149 public:
const Vector2i operator*(
int _v)
const;
154 public:
const Vector2i &operator*=(
int _v);
159 public:
bool operator ==(
const Vector2i &_v)
const;
164 public:
bool operator!=(
const Vector2i &_v)
const;
168 public:
bool IsFinite()
const;
172 public:
int operator[](
unsigned int _index)
const;
177 public: ignition::math::Vector2i Ign()
const;
192 _out << _pt.
x <<
" " << _pt.
y;
204 _in.setf(std::ios_base::skipws);
205 _in >> _pt.
x >> _pt.
y;
Generic integer x, y vector.
Definition: Vector2i.hh:36
friend std::istream & operator>>(std::istream &_in, gazebo::math::Vector2i &_pt)
Stream extraction operator.
Definition: Vector2i.hh:200
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector2i &_pt)
Stream insertion operator.
Definition: Vector2i.hh:189
GAZEBO_VISIBLE void Set(common::Image &_img, const msgs::Image &_msg)
Convert a msgs::Image to a common::Image.
int x
x data
Definition: Vector2i.hh:180
int y
y data
Definition: Vector2i.hh:183