« User Manual 3.3 Right circular cylinder » : différence entre les versions

De Patrius
Aller à la navigation Aller à la recherche
Page créée avec « ====Definition==== The right circular cylinders are limited by two planes normal to their axis. So, they are defined by their axis (a line or two equivalent vectors origin... »
 
Aucun résumé des modifications
 
Ligne 5 : Ligne 5 :


====Implementation====
====Implementation====
The Right Circular Cylinder object in the SIRIUS library implements the [MAT_GEO_CylinderInterface cylinder interface]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/RightCircularCylinder.html Javadoc] for a complete list of public methods.
The Right Circular Cylinder object in the SIRIUS library implements the [[User Manual 3.3 The Cylinder Interface|cylinder interface]]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/RightCircularCylinder.html Javadoc] for a complete list of public methods.


====Instantiation====
====Instantiation====

Dernière version du 4 avril 2018 à 14:21

Definition

The right circular cylinders are limited by two planes normal to their axis. So, they are defined by their axis (a line or two equivalent vectors origin and direction), their radius and their height :

Implementation

The Right Circular Cylinder object in the SIRIUS library implements the cylinder interface. Please refer to the Javadoc for a complete list of public methods.

Instantiation

The object is built from two vectors (Vector3D) and two doubles :

Vector3D origin = new Vector3D(1.0, 1.0, 1.0);
Vector3D direction = new Vector3D(2.0, 0.0, 0.0);
double radius = 2.0;
double height= 5.0;
RightCircularCylinder cylinder = new RightCircularCylinder(origin, direction , radius, height);

Or directly from a Line and two doubles :

Line axis = new Line(origin, direction);
double radius = 2.0;
double height= 5.0;
RightCircularCylinder cylinder = new RightCircularCylinder(axis, radius, height);

Usage

Please refer to the [MAT_GEO_Home#HInteractions Interactions with other geometrical objects section] for methods inherited from the Shape interface.