polar2d.h
Go to the documentation of this file.
1 #ifndef POLAR2D_H
2 #define POLAR2D_H
3 
4 #include <memory>
5 #include <tuw_geometry/point2d.h>
6 
7 namespace tuw {
8 class Polar2D;
9 using Polar2DPtr = std::shared_ptr< Polar2D >;
10 using Polar2DConstPtr = std::shared_ptr< Polar2D const>;
11 
15 class Polar2D : public Point2D {
16 public:
17  Polar2D ();
18  Polar2D ( const Point2D &p );
19  Polar2D ( double alpha, double rho );
20  Polar2D ( double alpha, double rho, double h );
21 
26  const double &alpha () const;
31  double &alpha ();
36  const double &rho () const;
41  double &rho () ;
45  Point2D point () const;
46 
47 
48 private:
49  using Point2D::x;
50  using Point2D::y;
51  using Point2D::angle;
52  using Point2D::radius;
53 };
54 
55 }
56 #endif //POLAR2D_H
57 
const double & y() const
Definition: point2d.cpp:49
const double & rho() const
Definition: polar2d.cpp:26
const double & h() const
Definition: point2d.cpp:63
std::shared_ptr< Polar2D const > Polar2DConstPtr
Definition: polar2d.h:10
double radius() const
Definition: point2d.cpp:160
const double & alpha() const
Definition: polar2d.cpp:14
std::shared_ptr< Polar2D > Polar2DPtr
Prototype.
Definition: polar2d.h:9
Definition: command.h:8
double angle() const
Definition: point2d.cpp:151
const double & x() const
Definition: point2d.cpp:35
Point2D point() const
Definition: polar2d.cpp:38


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