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

#include <polar2d.h>

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

Public Member Functions

double & alpha ()
 
const double & alpha () const
 
Point2D point () const
 
 Polar2D ()
 
 Polar2D (const Point2D &p)
 
 Polar2D (double alpha, double rho)
 
 Polar2D (double alpha, double rho, double h)
 
double & rho ()
 
const double & rho () const
 
- Public Member Functions inherited from tuw::Point2D
double angle () const
 
cv::Point_< double > & cv ()
 
const cv::Point_< double > & cv () const
 
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
 
double & h ()
 
const double & h () const
 
bool inside (double x0, double y0, double x1, double y1) const
 
 Point2D ()
 
 Point2D (const cv::Point &p)
 
template<typename T >
 Point2D (const cv::Point_< T > &p)
 
template<typename T >
 Point2D (const cv::Vec< T, 2 > &p)
 
template<typename T >
 Point2D (const cv::Vec< T, 3 > &p)
 
 Point2D (const Point2D &p)
 
 Point2D (const Polar2D &p)
 
 Point2D (double x, double y)
 
 Point2D (double x, double y, double h)
 
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
 
double & x ()
 
const double & x () const
 
double & y ()
 
const double & y () const
 

Private Member Functions

double angle () const
 
double radius () const
 
double & x ()
 
const double & x () const
 
double & y ()
 
const double & y () const
 

Detailed Description

class to represent a point with rho and alpha

Definition at line 15 of file polar2d.h.

Constructor & Destructor Documentation

◆ Polar2D() [1/4]

Polar2D::Polar2D ( )

Definition at line 6 of file polar2d.cpp.

◆ Polar2D() [2/4]

Polar2D::Polar2D ( const Point2D p)

Definition at line 7 of file polar2d.cpp.

◆ Polar2D() [3/4]

Polar2D::Polar2D ( double  alpha,
double  rho 
)

Definition at line 8 of file polar2d.cpp.

◆ Polar2D() [4/4]

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

Definition at line 9 of file polar2d.cpp.

Member Function Documentation

◆ alpha() [1/2]

double& tuw::Polar2D::alpha ( )

angle to origin

Returns
alpha

◆ alpha() [2/2]

double & Polar2D::alpha ( ) const

angle to origin

Returns
alpha
alpha

Definition at line 14 of file polar2d.cpp.

◆ angle()

double Point2D::angle
private

angle form origin to point (alpha in polar space)

See also
radius
Polar2D
Returns
angle between -PI and +PI

Definition at line 151 of file point2d.cpp.

◆ point()

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

Definition at line 38 of file polar2d.cpp.

◆ radius()

double Point2D::radius
private

distance to origin (rho in polar space)

See also
angle
Polar2D
Returns
distance

Definition at line 160 of file point2d.cpp.

◆ rho() [1/2]

double& tuw::Polar2D::rho ( )

distance to origin

Returns
rho component

◆ rho() [2/2]

double & Polar2D::rho ( ) const

distance to origin

Returns
rho component
rho component

Definition at line 26 of file polar2d.cpp.

◆ x() [1/2]

double& tuw::Point2D::x
private

translational x component

Returns
x component

◆ x() [2/2]

double & Point2D::x
private

translational x component

Returns
x component

translational x component

Returns
rotation

Definition at line 35 of file point2d.cpp.

◆ y() [1/2]

double& tuw::Point2D::y
private

translational y component

Returns
y component

◆ y() [2/2]

double & Point2D::y
private

translational y component

Returns
y component

Definition at line 49 of file point2d.cpp.


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


tuw_geometry
Author(s): Markus Bader
autogenerated on Sun Feb 26 2023 03:25:40