Vector3 Class Reference
[Server]
#include <Vector3.hh>
Detailed Description
Generic x,y,z vector.
Public Member Functions | |
Vector3 () | |
Constructor. | |
Vector3 (const double &x, const double &y, const double &z) | |
Constructor. | |
Vector3 (const Vector3 &pt) | |
Constructor. | |
virtual | ~Vector3 () |
Destructor. | |
double | Distance (const Vector3 &pt) const |
Calc distance to the given point. | |
double | GetLength () const |
Returns the length (magnitude) of the vector. | |
double | GetSquaredLength () const |
Return the square of the length (magnitude) of the vector. | |
void | Normalize () |
Normalize the vector length. | |
void | Set (double x=0, double y=0, double z=0) |
Set the contents of the vector. | |
Vector3 | GetCrossProd (const Vector3 &pt) const |
Return the cross product of this vector and pt. | |
Vector3 | GetPerpendicular () const |
Return a vector that is perpendicular to this one. | |
const Vector3 & | operator= (const Vector3 &pt) |
Equal operator. | |
const Vector3 & | operator= (double value) |
Equal operator. | |
Vector3 | operator+ (const Vector3 &pt) const |
Addition operator. | |
const Vector3 & | operator+= (const Vector3 &pt) |
Addition operator. | |
Vector3 | operator- (const Vector3 &pt) const |
Subtraction operators. | |
const Vector3 & | operator-= (const Vector3 &pt) |
Subtraction operators. | |
const Vector3 | operator/ (const Vector3 &pt) const |
Division operators. | |
const Vector3 & | operator/= (const Vector3 &pt) |
Division operators. | |
const Vector3 | operator/ (double v) const |
Division operators. | |
const Vector3 & | operator/= (double v) |
Division operators. | |
const Vector3 | operator * (const Vector3 &pt) const |
Multiplication operators. | |
const Vector3 & | operator *= (const Vector3 &pt) |
Multiplication operators. | |
const Vector3 | operator * (double v) const |
Multiplication operators. | |
const Vector3 & | operator *= (double v) |
Multiplication operators. | |
bool | operator== (const Vector3 &pt) const |
Equality operators. | |
bool | operator!= (const Vector3 &pt) const |
Equality operators. | |
bool | IsFinite () const |
See if a point is finite (e.g., not nan). | |
double | operator[] (unsigned int index) const |
[] operator | |
Public Attributes | |
double | x |
X location. | |
double | y |
Y location. | |
double | z |
Z location. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const gazebo::Vector3 &pt) |
Ostream operator. |
Friends And Related Function Documentation
std::ostream& operator<< | ( | std::ostream & | out, | |
const gazebo::Vector3 & | pt | |||
) | [friend] |
The documentation for this class was generated from the following file: