Vector3 Class Reference

#include <Vector3.hh>

List of all members.

Detailed Description

Generic x,y,z vector.

Public Member Functions

 Vector3 ()
 Vector3 (const double &x, const double &y, const double &z)
 Vector3 (const Vector3 &pt)
virtual ~Vector3 ()
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 Vector3operator= (const Vector3 &pt)
 Equal operator.
const Vector3operator= (double value)
 Equal operator.
Vector3 operator+ (const Vector3 &pt) const
 Addition operator.
const Vector3operator+= (const Vector3 &pt)
 Addition operator.
Vector3 operator- (const Vector3 &pt) const
 Subtraction operators.
const Vector3operator-= (const Vector3 &pt)
 Subtraction operators.
const Vector3 operator/ (const Vector3 &pt) const
 Division operators.
const Vector3operator/= (const Vector3 &pt)
 Division operators.
const Vector3 operator/ (double v) const
 Division operators.
const Vector3operator/= (double v)
 Division operators.
const Vector3 operator * (const Vector3 &pt) const
 Multiplication operators.
const Vector3operator *= (const Vector3 &pt)
 Multiplication operators.
const Vector3 operator * (double v) const
 Multiplication operators.
const Vector3operator *= (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.


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]

Ostream operator.

out Ostream
pt Vector3 to output
The Ostream

The documentation for this class was generated from the following file:

Last updated Aug 04 2007