User Manual 3.3 Disk : Différence entre versions
De Wiki
(Page créée avec « ====Definition==== Disks are used for the finite rectangle cones. center ====Implementation==== The Disk object implements th... ») |
(Aucune différence)
|
Version actuelle en date du 4 avril 2018 à 13:31
Definition
Disks are used for the finite rectangle cones.
Implementation
The Disk object implements the SolidShape interface and extends the Disk and abstract ellipse class. Please refer to the Disk and AbstractEllipse javadoc for a complete list of public methods.
Instantiation
The disk 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); double radius = 1; Disk disk = new Disk(center, normal, radius);
The local frame of the disk is built from the normal vector.
Usage
See abstract ellipse and interactions with geometrical objects.