#include <sphere.hpp>
This class defines a sphere. It also computes coordinate transformations between cartesian
and spherical
coordinates. The spherical coordinates are valid in the ranges:



The coordinates are related as follows:
is the angle in the xy plane starting with 0. from the positive x axis,
is measured against the positive z axis.
\ | Z \theta| \ | . \ | . \ | . \ | . \|. ---------------+---------.--------- /|\ . Y /phi\ . / | \ . / | \ . /.........\ / | X /
Inheritance diagram for Feel::Sphere:Public Member Functions | |
Constructors, destructor | |
| Sphere () | |
| Sphere (Sphere const &s) | |
| Sphere (const Point &c, const double r) | |
| ~Sphere () | |
Accessors | |
| double | radius () const |
| const Point & | center () const |
Mutators | |
| void | setCenter (Point const &p) |
| void | setRadius (double r) |
Methods | |
| void | createFromCenterRadius (const Point &c, const double r) |
| bool | intersects (const Sphere &other_sphere) const |
| bool | aboveSurface (const Point &p) const |
| bool | belowSurface (const Point &p) const |
| bool | onSurface (const Point &p) const |
| Point | closestPoint (const Point &p) const |
| Point | unitNormal (const Point &p) const |
| Point | surfaceCoords (const Point &cart) const |
| Point | worldCoords (const Point &sph) const |
Public Member Functions inherited from Feel::Surface | |
| Surface () | |
| Surface (const Surface &) | |
| virtual | ~Surface () |
|
inlinevirtual |
Implements Feel::Surface.
|
inlinevirtual |
Implements Feel::Surface.
References aboveSurface().
|
inline |
Implements Feel::Surface.
References center(), Feel::Geo0D< Dim, T >::node(), radius(), and unitNormal().
|
inline |
Defines a sphere of radius r centered at c.
References setCenter(), and setRadius().
|
inline |
|
inlinevirtual |
Implements Feel::Surface.
|
inline |
Returns the radius of the sphere.
|
inline |
set the center.
|
inline |
set the radius
cart. Reimplemented from Feel::Surface.
References center(), and Feel::Geo0D< Dim, T >::node().
Implements Feel::Surface.
References center(), and Feel::Geo0D< Dim, T >::node().
sph. Reimplemented from Feel::Surface.
References center().
1.8.5