3D vector class with common vector operations.
More...
#include </home/thodoris/src/ompl/demos/multicopter/CommonMath/Vec3.h>
|
| double | x |
| double | y |
| double | z |
| | the three components of the vector
|
3D vector class with common vector operations.
Definition at line 35 of file Vec3.h.
◆ Vec3() [1/4]
| CommonMath::Vec3::Vec3 |
( |
void | | ) |
|
|
inline |
Initialises all members to NaN.
Definition at line 40 of file Vec3.h.
◆ Vec3() [2/4]
| CommonMath::Vec3::Vec3 |
( |
double | xin, |
|
|
double | yin, |
|
|
double | zin ) |
|
inline |
Initialise vector.
Definition at line 46 of file Vec3.h.
◆ Vec3() [3/4]
| CommonMath::Vec3::Vec3 |
( |
const double | in[3] | ) |
|
|
inline |
Initialise vector.
Definition at line 50 of file Vec3.h.
◆ Vec3() [4/4]
| CommonMath::Vec3::Vec3 |
( |
Vec3 const & | in | ) |
|
|
inline |
◆ Cross()
| Vec3 CommonMath::Vec3::Cross |
( |
const Vec3 | rhs | ) |
const |
|
inline |
Calculate the cross product of two vectors.
Definition at line 103 of file Vec3.h.
◆ Dot()
| double CommonMath::Vec3::Dot |
( |
const Vec3 | rhs | ) |
const |
|
inline |
Calculate the dot product of two vectors.
Definition at line 97 of file Vec3.h.
◆ GetNorm2()
| double CommonMath::Vec3::GetNorm2 |
( |
void | | ) |
const |
|
inline |
Calculate the Euclidean norm of the vector.
Definition at line 115 of file Vec3.h.
◆ GetNorm2Squared()
| double CommonMath::Vec3::GetNorm2Squared |
( |
void | | ) |
const |
|
inline |
Calculate the Euclidean norm of the vector, squared (= sum of squared elements).
Definition at line 109 of file Vec3.h.
◆ GetUnitVector()
| Vec3 CommonMath::Vec3::GetUnitVector |
( |
void | | ) |
const |
|
inline |
Get the unit vector pointing along the same direction as this vector. Will fail for zero vectors.
Definition at line 121 of file Vec3.h.
◆ operator*=()
| Vec3 CommonMath::Vec3::operator*= |
( |
const double & | rhs | ) |
|
|
inline |
◆ operator+() [1/2]
| Vec3 CommonMath::Vec3::operator+ |
( |
| ) |
const |
|
inline |
◆ operator+() [2/2]
| Vec3 CommonMath::Vec3::operator+ |
( |
const Vec3 | rhs | ) |
const |
|
inline |
◆ operator+=()
| Vec3 CommonMath::Vec3::operator+= |
( |
const Vec3 | rhs | ) |
|
|
inline |
◆ operator-() [1/2]
| Vec3 CommonMath::Vec3::operator- |
( |
| ) |
const |
|
inline |
◆ operator-() [2/2]
| Vec3 CommonMath::Vec3::operator- |
( |
const Vec3 | rhs | ) |
const |
|
inline |
◆ operator-=()
| Vec3 CommonMath::Vec3::operator-= |
( |
const Vec3 | rhs | ) |
|
|
inline |
◆ operator/()
| Vec3 CommonMath::Vec3::operator/ |
( |
const double | rhs | ) |
const |
|
inline |
◆ operator/=()
| Vec3 CommonMath::Vec3::operator/= |
( |
const double & | rhs | ) |
|
|
inline |
◆ operator=()
| Vec3 & CommonMath::Vec3::operator= |
( |
const Vec3 & | other | ) |
|
|
inline |
◆ operator[]() [1/2]
| double & CommonMath::Vec3::operator[] |
( |
int | i | ) |
|
|
inline |
Setter function, index 0 <-> x, 1 <-> y, 2 <-> z.
Definition at line 77 of file Vec3.h.
◆ operator[]() [2/2]
| double CommonMath::Vec3::operator[] |
( |
int | i | ) |
const |
|
inline |
Getter function, index 0 <-> x, 1 <-> y, 2 <-> z.
Definition at line 59 of file Vec3.h.
| double CommonMath::Vec3::x |
| double CommonMath::Vec3::y |
| double CommonMath::Vec3::z |
the three components of the vector
Definition at line 38 of file Vec3.h.
The documentation for this class was generated from the following file:
- demos/multicopter/CommonMath/Vec3.h