navlib::Polar Class Reference

A point in 2D polar space. More...

#include <geometry.h>

List of all members.

Public Member Functions

 Polar (double rhoi=0.0f, double thetai=0.0f)
 Polar (Point p, Pose origin=Pose(0.0f, 0.0f, 0.0f))
bool operator< (const Polar &polar) const
 Less than operator.
bool operator== (const Polar &polar) const
 Equals operator.
Point toPoint () const
 Converts this polar point to an xy point.
Point toPoint (const Pose &origin) const
 Converts this polar point to an xy point in the global reference frame.

Public Attributes

double rho
 distance
double theta
 heading


Detailed Description

A point in 2D polar space.

Constructor & Destructor Documentation

Polar::Polar ( double  rhoi = 0.0f,
double  thetai = 0.0f 
)

Parameters:
rhoi distance with respect to the origin
thetai heading with respect to the origin

Polar::Polar ( Point  p,
Pose  origin = Pose(0.0f, 0.0f, 0.0f) 
)

Parameters:
p point
origin the origin of the polar frame

References rho, navlib::Pose::theta, theta, navlib::Pose::x, and navlib::Pose::y.


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

Generated on Mon Nov 3 20:33:35 2008 for navlib by  doxygen 1.5.5