#include <geometry.h>
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 |
Polar::Polar | ( | double | rhoi = 0.0f , |
|
double | thetai = 0.0f | |||
) |
rhoi | distance with respect to the origin | |
thetai | heading with respect to the origin |
p | point | |
origin | the origin of the polar frame |
References rho, navlib::Pose::theta, theta, navlib::Pose::x, and navlib::Pose::y.