double Generic x, y, z, w vector
More...
#include <math/gzmath.hh>
|
double | w |
| W value.
|
|
double | x |
| X value.
|
|
double | y |
| Y value.
|
|
double | z |
| Z value.
|
|
double Generic x, y, z, w vector
gazebo::math::Vector4::Vector4 |
( |
| ) |
|
gazebo::math::Vector4::Vector4 |
( |
const double & |
_x, |
|
|
const double & |
_y, |
|
|
const double & |
_z, |
|
|
const double & |
_w |
|
) |
| |
Constructor with component values.
- Parameters
-
[in] | _x | value along x axis |
[in] | _y | value along y axis |
[in] | _z | value along z axis |
[in] | _w | value along w axis |
gazebo::math::Vector4::Vector4 |
( |
const Vector4 & |
_v | ) |
|
Copy constructor.
- Parameters
-
virtual gazebo::math::Vector4::~Vector4 |
( |
| ) |
|
|
virtual |
double gazebo::math::Vector4::Distance |
( |
const Vector4 & |
_pt | ) |
const |
Calc distance to the given point.
- Parameters
-
- Returns
- the distance
double gazebo::math::Vector4::GetLength |
( |
| ) |
const |
Returns the length (magnitude) of the vector.
double gazebo::math::Vector4::GetSquaredLength |
( |
| ) |
const |
Return the square of the length (magnitude) of the vector.
- Returns
- the length
bool gazebo::math::Vector4::IsFinite |
( |
| ) |
const |
See if a point is finite (e.g., not nan)
- Returns
- true if finite, false otherwise
void gazebo::math::Vector4::Normalize |
( |
| ) |
|
Normalize the vector length.
bool gazebo::math::Vector4::operator!= |
( |
const Vector4 & |
_pt | ) |
const |
Not equal to operator.
- Parameters
-
- Returns
- true if each component is equal withing a default tolerence (1e-6), false otherwise
const Vector4 gazebo::math::Vector4::operator* |
( |
const Vector4 & |
_pt | ) |
const |
Multiplication operator.
- Parameters
-
- Returns
- result vector
const Vector4 gazebo::math::Vector4::operator* |
( |
const Matrix4 & |
_m | ) |
const |
Matrix multiplication operator.
- Parameters
-
- Returns
- the vector multiplied by _m
const Vector4 gazebo::math::Vector4::operator* |
( |
double |
_v | ) |
const |
Multiplication operators.
- Parameters
-
- Returns
- a scaled vector
const Vector4& gazebo::math::Vector4::operator*= |
( |
const Vector4 & |
_pt | ) |
|
Multiplication assignment operator.
- Parameters
-
- Returns
- this
const Vector4& gazebo::math::Vector4::operator*= |
( |
double |
_v | ) |
|
Multiplication assignment operator.
- Parameters
-
- Returns
- this
Addition operator.
- Parameters
-
- Returns
- a sum vector
const Vector4& gazebo::math::Vector4::operator+= |
( |
const Vector4 & |
_v | ) |
|
Addition operator.
- Parameters
-
- Returns
- this vector
Subtraction operator.
- Parameters
-
[in] | _v | the vector to substract |
- Returns
- a vector
const Vector4& gazebo::math::Vector4::operator-= |
( |
const Vector4 & |
_v | ) |
|
Subtraction assigment operators.
- Parameters
-
[in] | _v | the vector to substract |
- Returns
- this vector
const Vector4 gazebo::math::Vector4::operator/ |
( |
const Vector4 & |
_v | ) |
const |
Division assignment operator.
- Parameters
-
[in] | _v | the vector to perform element wise division with |
- Returns
- a result vector
const Vector4 gazebo::math::Vector4::operator/ |
( |
double |
_v | ) |
const |
Division assignment operator.
- Parameters
-
- Returns
- a result vector
const Vector4& gazebo::math::Vector4::operator/= |
( |
const Vector4 & |
_v | ) |
|
Division assignment operator.
- Parameters
-
[in] | _v | the vector to perform element wise division with |
- Returns
- this
const Vector4& gazebo::math::Vector4::operator/= |
( |
double |
_v | ) |
|
Division operator.
- Parameters
-
- Returns
- a vector
Assignment operator.
- Parameters
-
- Returns
- a reference to this vector
Vector4& gazebo::math::Vector4::operator= |
( |
double |
_value | ) |
|
Assignment operator.
- Parameters
-
bool gazebo::math::Vector4::operator== |
( |
const Vector4 & |
_pt | ) |
const |
Equal to operator.
- Parameters
-
- Returns
- true if each component is equal withing a default tolerence (1e-6), false otherwise
double gazebo::math::Vector4::operator[] |
( |
unsigned int |
_index | ) |
const |
Array subscript operator.
- Parameters
-
void gazebo::math::Vector4::Set |
( |
double |
_x = 0 , |
|
|
double |
_y = 0 , |
|
|
double |
_z = 0 , |
|
|
double |
_w = 0 |
|
) |
| |
Set the contents of the vector.
- Parameters
-
[in] | _x | value along x axis |
[in] | _y | value along y axis |
[in] | _z | value along z axis |
[in] | _w | value along w axis |
Stream insertion operator.
- Parameters
-
[in] | _out | output stream |
[in] | _pt | Vector4 to output |
- Returns
- The stream
Stream extraction operator.
- Parameters
-
[in] | _in | input stream |
[in] | _pt | Vector4 to read values into |
- Returns
- the stream
double gazebo::math::Vector4::w |
double gazebo::math::Vector4::x |
double gazebo::math::Vector4::y |
double gazebo::math::Vector4::z |
The documentation for this class was generated from the following file: