|
Core 1.0
|
Ellipsoids. More...
#include <ellipse.h>
Public Member Functions | |
| Ellipsoid () | |
| Empty. | |
| Ellipsoid (const double &, const double &, const double &) | |
| Create an ellipsoid. | |
| Ellipsoid (const Vector &, const Vector &, const Vector &, const double &, const double &, const double &) | |
| Create an ellipsoid. | |
| Ellipsoid (const Frame &, const double &, const double &, const double &) | |
| Create an ellipsoid. | |
| Ellipsoid (const Spheroid &) | |
| Create an ellipsoid. | |
| Ellipsoid (const Matrix &, const Vector &) | |
| Create an ellipsoid. | |
| ~Ellipsoid () | |
| Empty. | |
| Vector | Center () const |
| Return the center. | |
| Frame | GetFrame () const |
| Return the frame. | |
| FrameScaled | GetFrameScaled () const |
| Return the scaled frame. | |
| double | A () const |
| X radius of the ellipsoid. | |
| double | B () const |
| Y radius of the ellipsoid. | |
| double | C () const |
| Z radius of the ellipsoid. | |
| Box | GetBox () const |
| Compute the bouding box. | |
| Sphere | GetSphere () const |
| Compute the bouding sphere. | |
| double | Signed (const Vector &) const |
| Compute the (conserevative, not Euclidean) signed distance bound to the ellipsoid. | |
| Ellipsoid | Rotated (const Matrix &) const |
| Rotates an ellipsoid. | |
| Ellipsoid | Translated (const Vector &) const |
| Translates an ellipsoid. | |
| double | Volume () const |
| Compute the volume of an ellipsoid. | |
Static Public Member Functions | |
| static Ellipsoid | FromPoints (const std::vector< Vector > &, const double &=0.05) |
| Builds an ellipsoid enveloping a point cloud, using a Minium Volume Ellipsoid algorithm. | |
Protected Member Functions | |
| double | Value (const Vector &) const |
| Compute the field function value of an ellipsoid. | |
Protected Attributes | |
| Frame | frame |
| Frame. | |
| double | c = 1.0 |
| % Radii. | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Ellipsoid &ellipsoid) |
| Overloaded stream operator. | |
Ellipsoids.
|
explicit |
Create an ellipsoid.
| a,b,c | Axis lengths. |
|
explicit |
Create an ellipsoid.
| e | Center. |
| x,y | Axes, should be normalized. |
| a,b,c | Axis lengths. |
|
explicit |
Create an ellipsoid.
| frame | The frame. |
| a,b,c | Axis lengths. |
Builds an ellipsoid enveloping a point cloud, using a Minium Volume Ellipsoid algorithm.
| p | Points. |
| t | Tolerance |
Rotates an ellipsoid.
| r | Rotation matrix. |
| double Ellipsoid::Signed | ( | const Vector & | p | ) | const |
Compute the (conserevative, not Euclidean) signed distance bound to the ellipsoid.
| p | Point. |
Translates an ellipsoid.
| t | Translation vector. |
|
protected |
Compute the field function value of an ellipsoid.
| p | Point. |
|
inline |
Compute the volume of an ellipsoid.
Note that the surface area of a general (triaxial) ellipsoid involves incomplete elliptic integrals of the first and second kind respectively.
|
friend |
Overloaded stream operator.
| s | Stream. |
| ellipsoid | Ellipsoid. |