17 #ifndef GAZEBO_MATH_VECTOR2I_HH_
18 #define GAZEBO_MATH_VECTOR2I_HH_
23 #include <ignition/math/Vector2.hh>
52 public:
Vector2i(
const ignition::math::Vector2i &_pt)
61 public:
int Distance(
const Vector2i &_pt)
const;
64 public:
void Normalize();
69 public:
void Set(
int _x,
int _y);
84 public:
Vector2i &operator =(
const ignition::math::Vector2i &_v);
89 public:
const Vector2i &operator =(
int _value);
127 public:
const Vector2i operator/(
int _v)
const;
133 public:
const Vector2i &operator/=(
int _v);
150 public:
const Vector2i operator*(
int _v)
const;
155 public:
const Vector2i &operator*=(
int _v);
160 public:
bool operator ==(
const Vector2i &_v)
const;
165 public:
bool operator!=(
const Vector2i &_v)
const;
169 public:
bool IsFinite()
const;
173 public:
int operator[](
unsigned int _index)
const;
178 public: ignition::math::Vector2i Ign()
const;
193 _out << _pt.
x <<
" " << _pt.
y;
205 _in.setf(std::ios_base::skipws);
206 _in >> _pt.
x >> _pt.
y;
static const double GAZEBO_DEPRECATED(8.0) MAX_D
Double maximum value. This value will be similar to 1.79769e+308.
Definition: Helpers.hh:140
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:201
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector2i &_pt)
Stream insertion operator.
Definition: Vector2i.hh:190
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:181
int y
y data
Definition: Vector2i.hh:184