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