|
|
| Spheroid () |
| | Empty.
|
| | Spheroid (const Vector &, const Vector &, const double &, const double &) |
| | Create a spheroid.
|
| | Spheroid (const Vector &, const Vector &, const double &) |
| | Create a spheroid.
|
|
| ~Spheroid () |
| | Empty.
|
|
Vector | Center () const |
| | Gets the center.
|
|
Vector | GetAxis () const |
| | Gets the axis.
|
|
double | A () const |
| | Half length along the axis of revolution.
|
|
double | B () const |
| | Radius in the plane orthogonal to the axis.
|
|
Box | GetBox () const |
| | Compute the bouding box.
|
|
Sphere | GetSphere () const |
| | Compute the bouding sphere.
|
| Spheroid | Rotated (const Matrix &) const |
| | Rotates a spheroid.
|
| Spheroid | Translated (const Vector &) const |
| | Translates a spheroid.
|
| double | R (const Vector &) const |
| | Compute the squared distance between a point and the spheroid.
|
| int | Intersect (const Ray &, double &, double &) const |
| | Computes the intersection between a ray and the spheroid.
|
| double | Area () const |
| | Compute the surface area.
|
|
double | Volume () const |
| | Compute the volume of an ellipsoid.
|
Spheroids are symmetric ellipsoids, i.e., with the same radial coefficients a = b ≠ c.
Symmetric spheroids are surfaces of revolution, thus the Euclidean distance of a point or the signed distance can be computed analytically.
- See also
- Ellipse2
| double Spheroid::Area |
( |
| ) |
const |
Compute the surface area.
While the surface area of a general (tri-axial) spheroid involves incomplete elliptic integrals of the first and second kind, the case of an ellipsoid of revolution (or spheroid) may be expressed in terms of elementary functions.
If radial length is greater than axial length, one has an oblate spheroid; otherwize one has a prolate spheroid.
With \( \varepsilon \) the eccentricity, the area is \( 2 \pi b^2 (1 + (a^2 / (b^2 \varepsilon)) \mathrm{artanh} \varepsilon) \) for an oblate spheroid, and \( 2 \pi b^2 (1 + (a / (b \varepsilon)) \arcsin \varepsilon) \) for a prolate spheroid. The eccentricity is null for a sphere, in which case the area is \( 4 \pi b^2 \), the limit of both formulas.