49 public:
Vector4(
const double &_x,
const double &_y,
const double &_z,
63 public:
double Distance(
const Vector4 &_pt)
const;
66 public:
double GetLength()
const;
70 public:
double GetSquaredLength()
const;
73 public:
void Normalize();
80 public:
void Set(
double _x = 0,
double _y = 0 ,
double _z = 0,
90 public:
Vector4 &operator =(
double _value);
131 public:
const Vector4 operator/(
double _v)
const;
136 public:
const Vector4 &operator/=(
double _v);
160 public:
const Vector4 operator*(
double _v)
const;
165 public:
const Vector4 &operator*=(
double _v);
171 public:
bool operator ==(
const Vector4 &_pt)
const;
177 public:
bool operator!=(
const Vector4 &_pt)
const;
181 public:
bool IsFinite()
const;
185 public:
double operator[](
unsigned int _index)
const;
206 _out << _pt.
x <<
" " << _pt.
y <<
" " << _pt.
z <<
" " << _pt.
w;
214 public:
friend std::istream &operator >> (std::istream &_in,
218 _in.setf(std::ios_base::skipws);
219 _in >> _pt.
x >> _pt.
y >> _pt.
z >> _pt.
w;
Forward declarations for the common classes.
Definition: Animation.hh:33
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector4 &_pt)
Stream insertion operator.
Definition: Vector4.hh:203
A 3x3 matrix class.
Definition: Matrix4.hh:40
double Generic x, y, z, w vector
Definition: Vector4.hh:39
double y
Y value.
Definition: Vector4.hh:191
double z
Z value.
Definition: Vector4.hh:194
GAZEBO_VISIBLE void Set(common::Image &_img, const msgs::Image &_msg)
Convert a msgs::Image to a common::Image.
double w
W value.
Definition: Vector4.hh:197
double x
X value.
Definition: Vector4.hh:188