DGtal
1.5.beta
|
Aim: Implement a parametric curve – elliptic helix. More...
#include <DGtal/geometry/curves/parametric/EllipticHelix.h>
Public Types | |
typedef TSpace | Space |
typedef TSpace::RealPoint | RealPoint |
typedef TSpace::Point | Point |
Public Member Functions | |
~EllipticHelix () | |
EllipticHelix (long double rr, long double rl, long double bb) | |
RealPoint | x (long double t) const |
RealPoint | xp (long double t) const |
long double | f (const RealPoint &p) const |
inverse function of x More... | |
long double | g (const RealPoint &p) const |
inverse function of y More... | |
long double | h (const RealPoint &p) const |
inverse function of z More... | |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Static Public Member Functions | |
static double | getPeriod () |
Protected Member Functions | |
EllipticHelix () | |
Private Member Functions | |
EllipticHelix (const EllipticHelix &other) | |
EllipticHelix & | operator= (const EllipticHelix &other) |
Private Attributes | |
long double | r1 |
long double | r2 |
long double | b |
Static Private Attributes | |
static constexpr double | PERIOD = M_PI * 2.0 |
Aim: Implement a parametric curve – elliptic helix.
Description of class 'EllipticHelix'
TSpace | model of CSpace |
Definition at line 59 of file EllipticHelix.h.
typedef TSpace::Point DGtal::EllipticHelix< TSpace >::Point |
Definition at line 65 of file EllipticHelix.h.
typedef TSpace::RealPoint DGtal::EllipticHelix< TSpace >::RealPoint |
Definition at line 64 of file EllipticHelix.h.
typedef TSpace DGtal::EllipticHelix< TSpace >::Space |
Definition at line 63 of file EllipticHelix.h.
|
inline |
DGtal::EllipticHelix< TSpace >::EllipticHelix | ( | long double | rr, |
long double | rl, | ||
long double | bb | ||
) |
Constructor.
rr | small radius of the helix |
rl | big radius of the helix |
bb | distance between each turn. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
long double DGtal::EllipticHelix< TSpace >::f | ( | const RealPoint & | p | ) | const |
inverse function of x
p | = x(t) |
long double DGtal::EllipticHelix< TSpace >::g | ( | const RealPoint & | p | ) | const |
inverse function of y
p | = x(t)[ |
|
static |
long double DGtal::EllipticHelix< TSpace >::h | ( | const RealPoint & | p | ) | const |
inverse function of z
p | = x(t) |
bool DGtal::EllipticHelix< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
other | the object to copy. |
void DGtal::EllipticHelix< TSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
RealPoint DGtal::EllipticHelix< TSpace >::x | ( | long double | t | ) | const |
t | any angle between 0 and k*Pi. |
RealPoint DGtal::EllipticHelix< TSpace >::xp | ( | long double | t | ) | const |
t | any angle between 0 and k*Pi. |
|
private |
Definition at line 137 of file EllipticHelix.h.
|
staticconstexprprivate |
Definition at line 168 of file EllipticHelix.h.
|
private |
Definition at line 137 of file EllipticHelix.h.
|
private |
Definition at line 137 of file EllipticHelix.h.