User Manual 3.3 Ellipse : Différence entre versions
De Wiki
(Page créée avec « Ellipses are used for the finite elliptic cones. center ====Implementation==== The Ellipse object implements the [{{JavaDoc... ») |
(Aucune différence)
|
Version actuelle en date du 4 avril 2018 à 13:32
Ellipses are used for the finite elliptic cones.
Implementation
The Ellipse object implements the SolidShape interface and extends the abstract ellipse class. Please refer to the Ellipse and AbstractEllipse javadoc for a complete list of public methods.
Instantiation
The ellipse object is built from a centre (Vector3D), one vector representing the normal to the disk surface (Vector3D) and one radius :
Vector3D center = new Vector3D(1.0, 1.0, 1.0); Vector3D normal = new Vector3D(1.0, 1.0, 0.0); Vector3D uVector = new Vector3D(1.0, 1.0, 0.0); double radiusA = 1; double radiusB = 2; Ellipse ellipse = new Ellipse(center, normal, uVector, radiusA, radiusB);
The local frame of the ellipse is built from the normal vector and the direction given by uVector (after orthogonolizing).
Usage
See abstract ellipse and interactions with geometrical objects.