47 public:
Vector2d(
const double &_x,
const double &_y);
59 public:
double Distance(
const Vector2d &_pt)
const;
62 public:
void Normalize();
67 public:
void Set(
double _x,
double _y);
72 public:
double Dot(
const Vector2d &_v)
const;
82 public:
const Vector2d &operator =(
double _v);
119 public:
const Vector2d operator/(
double _v)
const;
124 public:
const Vector2d &operator/=(
double _v);
140 public:
const Vector2d operator*(
double _v)
const;
145 public:
const Vector2d &operator*=(
double _v);
151 public:
bool operator ==(
const Vector2d &_v)
const;
155 public:
bool operator!=(
const Vector2d &_v)
const;
159 public:
bool IsFinite()
const;
164 public:
double operator[](
unsigned int _index)
const;
179 _out << _pt.
x <<
" " << _pt.
y;
191 _in.setf(std::ios_base::skipws);
192 _in >> _pt.
x >> _pt.
y;
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector2d &_pt)
Stream extraction operator.
Definition: Vector2d.hh:176
Generic double x, y vector.
Definition: Vector2d.hh:39
double y
y data
Definition: Vector2d.hh:170
double x
x data
Definition: Vector2d.hh:167
GAZEBO_VISIBLE void Set(common::Image &_img, const msgs::Image &_msg)
Convert a msgs::Image to a common::Image.
friend std::istream & operator>>(std::istream &_in, gazebo::math::Vector2d &_pt)
Stream extraction operator.
Definition: Vector2d.hh:187
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48