Public Member Functions | List of all members
tuw::Polar2D Class Reference

#include <polar2d.h>

Inheritance diagram for tuw::Polar2D:
Inheritance graph
[legend]

Public Member Functions

const double & alpha () const
 
double & alpha ()
 
Point2D point () const
 
 Polar2D ()
 
 Polar2D (const Point2D &p)
 
 Polar2D (double alpha, double rho)
 
 Polar2D (double alpha, double rho, double h)
 
const double & rho () const
 
double & rho ()
 
- Public Member Functions inherited from tuw::Point2D
double angle () const
 
const cv::Point_< double > & cv () const
 
cv::Point_< double > & cv ()
 
double distanceTo (const Point2D &p) const
 
bool equal (const Point2D &o, double tolerance=0.0001) const
 
double get_h () const
 
double get_x () const
 
double get_y () const
 
const double & h () const
 
double & h ()
 
bool inside (double x0, double y0, double x1, double y1) const
 
 Point2D ()
 
 Point2D (const Point2D &p)
 
 Point2D (const cv::Point &p)
 
 Point2D (double x, double y)
 
 Point2D (double x, double y, double h)
 
 Point2D (const Polar2D &p)
 
template<typename T >
 Point2D (const cv::Vec< T, 3 > &p)
 
template<typename T >
 Point2D (const cv::Vec< T, 2 > &p)
 
template<typename T >
 Point2D (const cv::Point_< T > &p)
 
double radius () const
 
Point2Dset (double x, double y)
 
Point2Dset (double x, double y, double h)
 
void set_h (double v)
 
void set_x (double v)
 
void set_y (double v)
 
std::string str (const char *format="[%6.4lf, %6.4lf, %6.5lf]") const
 
cv::Vec< double, 2 > vector () const
 
const double & x () const
 
double & x ()
 
const double & y () const
 
double & y ()
 

Detailed Description

class to represent a point with rho and alpha

Definition at line 15 of file polar2d.h.

Constructor & Destructor Documentation

Polar2D::Polar2D ( )

Definition at line 6 of file polar2d.cpp.

Polar2D::Polar2D ( const Point2D p)

Definition at line 7 of file polar2d.cpp.

Polar2D::Polar2D ( double  alpha,
double  rho 
)

Definition at line 8 of file polar2d.cpp.

Polar2D::Polar2D ( double  alpha,
double  rho,
double  h 
)

Definition at line 9 of file polar2d.cpp.

Member Function Documentation

const double & Polar2D::alpha ( ) const

angle to origin

Returns
alpha
alpha

Definition at line 14 of file polar2d.cpp.

double & Polar2D::alpha ( )

angle to origin

Returns
alpha
alpha

Definition at line 20 of file polar2d.cpp.

Point2D Polar2D::point ( ) const
Returns
point in cartesian space

Definition at line 38 of file polar2d.cpp.

const double & Polar2D::rho ( ) const

distance to origin

Returns
rho component
rho component

Definition at line 26 of file polar2d.cpp.

double & Polar2D::rho ( )

distance to origin

Returns
rho component
rho component

Definition at line 32 of file polar2d.cpp.


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


tuw_geometry
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:33:09