RDK2::Geometry::Point3o< Numeric > Class Template Reference

#include <point3o.h>

Inheritance diagram for RDK2::Geometry::Point3o< Numeric >:

Inheritance graph
[legend]
Collaboration diagram for RDK2::Geometry::Point3o< Numeric >:

Collaboration graph
[legend]

Detailed Description

template<typename Numeric>
class RDK2::Geometry::Point3o< Numeric >

Beware that the operators + - * uses also the "theta", "phi" and "gamma" components.

Definition at line 35 of file point3o.h.


Operators

Point3o< Numeric > operator- (const Point3o< Numeric > &p) const
 Subtracts two vectors.
Point3o< Numeric > operator+ (const Point3o< Numeric > &p) const
 Adds two vectors.
Point3o< Numeric > operator* (const Numeric &n) const
 Multiplies components by n.
Point2o< Numeric > point2o () const
 Generates a point2o from the x,y,theta components.
static doublerollPitchYawMatrix (double roll, double pitch, double yaw)

Public Member Functions

Constructors
 Point3o ()
 Point3o (Numeric x, Numeric y, Numeric z, double theta, double phi, double gamma)
 Point3o (const Point2o< Numeric > &p, Numeric z=0, double phi=0, double gamma=0)
 Point3o (const Point3o< Numeric > &p)
Tests
bool operator== (const Point3o< Numeric > &p) const
bool operator!= (const Point3o< Numeric > &p) const
Output functions
std::string toString () const
 String representation (x,y,z;theta,gamma,phi).
std::string outputSpaceSeparated () const
 A string representation. Example: " x y z theta phi gamma".

Data Fields

Numeric z
double phi
 theta=roll, phi=pitch, gamma=yaw
double gamma

Constructor & Destructor Documentation

template<typename Numeric>
RDK2::Geometry::Point3o< Numeric >::Point3o (  )  [inline]

Definition at line 49 of file point3o.h.

template<typename Numeric>
RDK2::Geometry::Point3o< Numeric >::Point3o ( Numeric  x,
Numeric  y,
Numeric  z,
double  theta,
double  phi,
double  gamma 
) [inline]

Definition at line 50 of file point3o.h.

template<typename Numeric>
RDK2::Geometry::Point3o< Numeric >::Point3o ( const Point2o< Numeric > &  p,
Numeric  z = 0,
double  phi = 0,
double  gamma = 0 
) [inline, explicit]

Definition at line 51 of file point3o.h.

template<typename Numeric>
RDK2::Geometry::Point3o< Numeric >::Point3o ( const Point3o< Numeric > &  p  )  [inline]

Definition at line 52 of file point3o.h.


Member Function Documentation

template<typename Numeric>
Point3o<Numeric> RDK2::Geometry::Point3o< Numeric >::operator- ( const Point3o< Numeric > &  p  )  const [inline]

Subtracts two vectors.

Definition at line 58 of file point3o.h.

template<typename Numeric>
Point3o<Numeric> RDK2::Geometry::Point3o< Numeric >::operator+ ( const Point3o< Numeric > &  p  )  const [inline]

Adds two vectors.

Definition at line 63 of file point3o.h.

template<typename Numeric>
Point3o<Numeric> RDK2::Geometry::Point3o< Numeric >::operator* ( const Numeric &  n  )  const [inline]

Multiplies components by n.

Reimplemented from RDK2::Geometry::Point2o< Numeric >.

Definition at line 68 of file point3o.h.

template<typename Numeric>
static double* RDK2::Geometry::Point3o< Numeric >::rollPitchYawMatrix ( double  roll,
double  pitch,
double  yaw 
) [inline, static]

Definition at line 75 of file point3o.h.

template<typename Numeric>
Point2o<Numeric> RDK2::Geometry::Point3o< Numeric >::point2o (  )  const [inline]

Generates a point2o from the x,y,theta components.

Definition at line 97 of file point3o.h.

template<typename Numeric>
bool RDK2::Geometry::Point3o< Numeric >::operator== ( const Point3o< Numeric > &  p  )  const [inline]

Definition at line 103 of file point3o.h.

template<typename Numeric>
bool RDK2::Geometry::Point3o< Numeric >::operator!= ( const Point3o< Numeric > &  p  )  const [inline]

Definition at line 106 of file point3o.h.

template<typename Numeric>
std::string RDK2::Geometry::Point3o< Numeric >::toString (  )  const [inline]

String representation (x,y,z;theta,gamma,phi).

A string representation, with $ @theta $, $ @gamma $ and $ @phi $ expressed in degrees. Example:

"(1,2,3;90�,3�,45�)"

Reimplemented from RDK2::Geometry::Point2o< Numeric >.

Definition at line 122 of file point3o.h.

template<typename Numeric>
std::string RDK2::Geometry::Point3o< Numeric >::outputSpaceSeparated (  )  const [inline]

A string representation. Example: " x y z theta phi gamma".

Reimplemented from RDK2::Geometry::Point2o< Numeric >.

Definition at line 130 of file point3o.h.


Field Documentation

template<typename Numeric>
Numeric RDK2::Geometry::Point3o< Numeric >::z

template<typename Numeric>
double RDK2::Geometry::Point3o< Numeric >::phi

template<typename Numeric>
double RDK2::Geometry::Point3o< Numeric >::gamma


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

Generated on Tue Mar 3 15:05:55 2009 for OpenRDK by  doxygen 1.5.6