|
| | HemiSphereDisc (const Vector &, const Vector &, const double &, const double &) |
| | Create a hemi-sphere disc.
|
|
| ~HemiSphereDisc () |
| | Empty.
|
| Vector | Normal (const Vector &) const |
| | Computes the distance vector between the skeleton and a given point in space.
|
| double | R (const Vector &) const |
| | Computes the squared distance to the object.
|
| double | Signed (const Vector &) const |
| | Compute the Euclidean signed distance between the object and a point.
|
|
Box | GetBox () const |
| | Compute the axis aligned bounding box.
|
|
Vector | Center () const |
| | Gets the center of a circle.
|
|
|
| Circle () |
| | Empty.
|
| | Circle (const double &) |
| | Creates a circle.
|
| | Circle (const Vector &, const Vector &, const double &) |
| | Creates a circle.
|
| | Circle (const Vector &, const Vector &, const Vector &) |
| | Creates a circle given three points.
|
|
| ~Circle () |
| | Empty.
|
| bool | Intersect (const Ray &, double &) const |
| | Compute the ray-disc intersection.
|
|
Vector | Center () const |
| | Gets the center of a circle.
|
|
Vector | Axis () const |
| | Axis of the circle.
|
|
double | Radius () const |
| | Radius of the circle.
|
| double | R (const Vector &) const |
| | Compute the squared distance between a point and a circle.
|
| Vector | Normal (const Vector &) const |
| | Computes the distance vector between a circle and a point.
|
| void | Rotate (const Matrix &) |
| | Rotates a circle.
|
| void | Translate (const Vector &) |
| | Translates a circle.
|
| void | Scale (const double &) |
| | Uniformly scales a circle.
|
| Box | GetBox () const |
| | Compute the axis aligned bounding box of a circle.
|
| double | Area () const |
| | Area of a circle.
|
| Vector | RandomInside (Random &=Random::R239) const |
| | Generate a random vector inside the circle.
|
| Vector | RandomOn (Random &=Random::R239) const |
| | Generate a random vector on the circle.
|
| Vector | Vogel (int, int) const |
| | Generate a spiraling vector in the disc.
|
| static double | Area (const double &) |
| | Area of a circle given its radius.
|
|
static constexpr const double | epsilon = 1.0e-10 |
| | Internal epsilon constant.
|
Hemisphere-disk.
This shape is defined as the Minkowski sum between a hemisphere and a disc. It is the half, on the side of the axis, of the set of points at a distance at most s from the disc of radius r: its bottom is the flat disc of radius r+s, and the top is a flat disc of radius r, at distance s from the bottom, connected by a quarter of a torus.
| double HemiSphereDisc::Signed |
( |
const Vector & | p | ) |
const |
Compute the Euclidean signed distance between the object and a point.
The distance is negative inside the object, positive outside, and its absolute value is the distance to the surface. The function is continuous and 1-Lipschitz; the squared distance, null inside, is computed by R().
- Parameters
-