« User Manual 3.3 Ellipsoids » : différence entre les versions
Page créée avec « ==== Definition ==== An ellipsoid is a closed quadric surface that is the three dimensional analogue of an ellipse. Assuming the XYZ coordinate system is such that the el... » |
Aucun résumé des modifications |
||
| Ligne 11 : | Ligne 11 : | ||
==== Implementation ==== | ==== Implementation ==== | ||
The Ellipsoid object in the SIRIUS library implements the [ | The Ellipsoid object in the SIRIUS library implements the [[User Manual 3.3 The Ellipsoid Interface|Ellipsoid interface]]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/Ellipsoid.html Javadoc] for a complete list of public methods. | ||
==== Instantiation ==== | ==== Instantiation ==== | ||
Dernière version du 4 avril 2018 à 14:15
Definition
An ellipsoid is a closed quadric surface that is the three dimensional analogue of an ellipse. Assuming the XYZ coordinate system is such that the ellipsoid is centered and axis-aligned, the ellipsoids equation is given by:
a,b and c are called the semi axes of the ellipsoid.
Implementation
The Ellipsoid object in the SIRIUS library implements the Ellipsoid interface. Please refer to the Javadoc for a complete list of public methods.
Instantiation
In order to instantiate an ellipsoid, the user must specify the ellipsoids' center, it's axis of revolution, X-axis, and all three semi-axis [math]\displaystyle{ a, b }[/math] and [math]\displaystyle{ c }[/math]. For example :
// Spheroid parameters
Vector3D position = new Vector3D(0, 0, 0);
Vector3D revAxis = new Vector3D(0, 0, 1);
Vector3D xAxis = new Vector3D(1, 0, 0);
double a = 2.0;
double c = 1.5;
double c = 1.0;
// The ellipsoid itself
Ellipsoid myEllipsoid = new Ellipsoid(position, revAxis, xAxis, a, b, c);
Usage
Please refer to the [MAT_GEO_Home#HInteractions Interactions with other geometrical objects section] for methods inherited from the Shape interface.