#include <DGtal/shapes/parametric/Ball3D.h>
template<typename TSpace>
class DGtal::Ball3D< TSpace >
Aim: Model of the concept StarShaped3D represents any Sphere in the space.
Description of template class 'Ball3D'
- Examples:
- dec/exampleHeatLaplace.cpp, and tutorial-examples/AreaSurfaceEstimation-final.cpp.
Definition at line 60 of file Ball3D.h.
template<typename TSpace >
template<typename TSpace >
template<typename TSpace >
template<typename TSpace >
template<typename TSpace >
DGtal::Ball3D< TSpace >::Ball3D |
( |
const double |
x0, |
|
|
const double |
y0, |
|
|
const double |
z0, |
|
|
const double |
r |
|
) |
| |
Constructor.
- Parameters
-
x0 | the x-coordinate of the sphere center. |
y0 | the y-coordinate of the sphere center. |
z0 | the z-coordinate of the sphere center. |
r | the radius of the sphere. |
template<typename TSpace >
Constructor.
- Parameters
-
aPoint | the sphere center. |
r | the radius of the sphere. |
template<typename TSpace >
Constructor. Forbidden by default (protected to avoid g++ warnings).
template<typename TSpace >
template<typename TSpace >
template<typename TSpace >
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (gradf(M)).
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
template<typename TSpace >
Copy constructor.
- Parameters
-
other | the object to clone. Forbidden by default. Assignment. |
other | the object to copy. |
- Returns
- a reference on 'this'. Forbidden by default.
template<typename TSpace >
- Parameters
-
- Returns
- the couple of angles parameters Teta && Phi which are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi] corresponding to this point for the shape.
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (rp(M)) wich is the partial derivative with respect to Phi.
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (rpp(M)) wich is second the partial derivatif with respect to Phi (twice).
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (rt(M)) wich is the partial derivative with respect to Teta.
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (rpp(M)) wich is second the partial derivative with respect to Teta then Phi.
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (rtt(M)) wich is second the partial derivative with respect to Teta (twice).
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
void DGtal::Ball3D< TSpace >::selfDisplay |
( |
std::ostream & |
out | ) |
const |
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
template<typename TSpace >
- Parameters
-
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
- Returns
- the vector (x(t),y(t),z(t)) which is the position on the shape boundary.
Implements DGtal::StarShaped3D< TSpace >.
template<typename TSpace >
template<typename TSpace >
The documentation for this class was generated from the following file: