47 public:
Vector2i(
const int &_x,
const int &_y);
59 public:
int Distance(
const Vector2i &_pt)
const;
62 public:
void Normalize();
67 public:
void Set(
int _x,
int _y);
82 public:
const Vector2i &operator =(
int _value);
120 public:
const Vector2i operator/(
int _v)
const;
126 public:
const Vector2i &operator/=(
int _v);
143 public:
const Vector2i operator*(
int _v)
const;
148 public:
const Vector2i &operator*=(
int _v);
153 public:
bool operator ==(
const Vector2i &_v)
const;
158 public:
bool operator!=(
const Vector2i &_v)
const;
162 public:
bool IsFinite()
const;
166 public:
int operator[](
unsigned int _index)
const;
181 _out << _pt.
x <<
" " << _pt.
y;
193 _in.setf(std::ios_base::skipws);
194 _in >> _pt.
x >> _pt.
y;
Generic integer x, y vector.
Definition: Vector2i.hh:39
friend std::istream & operator>>(std::istream &_in, gazebo::math::Vector2i &_pt)
Stream extraction operator.
Definition: Vector2i.hh:189
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector2i &_pt)
Stream insertion operator.
Definition: Vector2i.hh:178
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:169
int y
y data
Definition: Vector2i.hh:172
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48