include
tuw_geometry
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
tuw::Point2D::y
const double & y() const
Definition:
point2d.cpp:49
tuw::Point2D::h
const double & h() const
Definition:
point2d.cpp:63
tuw::Polar2D::Polar2D
Polar2D()
Definition:
polar2d.cpp:6
tuw::Polar2DConstPtr
std::shared_ptr< Polar2D const > Polar2DConstPtr
Definition:
polar2d.h:10
point2d.h
tuw::Polar2DPtr
std::shared_ptr< Polar2D > Polar2DPtr
Prototype.
Definition:
polar2d.h:9
test_point2d.p
p
Definition:
test_point2d.py:20
tuw::Point2D::x
const double & x() const
Definition:
point2d.cpp:35
tuw::Point2D::radius
double radius() const
Definition:
point2d.cpp:160
tuw
Definition:
command.h:8
tuw::Polar2D
Definition:
polar2d.h:15
tuw::Polar2D::alpha
const double & alpha() const
Definition:
polar2d.cpp:14
tuw::Polar2D::rho
const double & rho() const
Definition:
polar2d.cpp:26
tuw::Point2D
Definition:
point2d.h:19
tuw::Polar2D::point
Point2D point() const
Definition:
polar2d.cpp:38
tuw::Point2D::angle
double angle() const
Definition:
point2d.cpp:151
tuw_geometry
Author(s): Markus Bader
autogenerated on Sun Feb 26 2023 03:25:40