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