User Manual 3.3 Disk

De Wiki
Révision de 4 avril 2018 à 13:31 par Admin (discussion | contributions) (Page créée avec « ====Definition==== Disks are used for the finite rectangle cones. center ====Implementation==== The Disk object implements th... »)

(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

Definition

Disks are used for the finite rectangle cones.

Disk.PNG

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.