27 #include <ignition/math/Vector4.hh>
51 public:
Vector4(
const double &_x,
const double &_y,
const double &_z,
60 public:
Vector4(
const ignition::math::Vector4d &_v)
69 public:
double Distance(
const Vector4 &_pt)
const;
72 public:
double GetLength()
const;
76 public:
double GetSquaredLength()
const;
79 public:
void Normalize();
86 public:
void Set(
double _x = 0,
double _y = 0 ,
double _z = 0,
91 public: ignition::math::Vector4d Ign()
const;
96 public:
Vector4 &operator=(
const ignition::math::Vector4d &_v);
105 public:
Vector4 &operator =(
double _value);
146 public:
const Vector4 operator/(
double _v)
const;
151 public:
const Vector4 &operator/=(
double _v);
175 public:
const Vector4 operator*(
double _v)
const;
180 public:
const Vector4 &operator*=(
double _v);
186 public:
bool operator ==(
const Vector4 &_pt)
const;
192 public:
bool operator!=(
const Vector4 &_pt)
const;
196 public:
bool IsFinite()
const;
200 public:
double operator[](
unsigned int _index)
const;
221 _out << _pt.
x <<
" " << _pt.
y <<
" " << _pt.
z <<
" " << _pt.
w;
229 public:
friend std::istream &operator >> (std::istream &_in,
233 _in.setf(std::ios_base::skipws);
234 _in >> _pt.
x >> _pt.
y >> _pt.
z >> _pt.
w;
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
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Vector4 &_pt)
Stream insertion operator.
Definition: Vector4.hh:218
A 3x3 matrix class.
Definition: Matrix4.hh:40
double Generic x, y, z, w vector
Definition: Vector4.hh:41
double y
Y value.
Definition: Vector4.hh:206
double z
Z value.
Definition: Vector4.hh:209
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:212
double x
X value.
Definition: Vector4.hh:203