User Manual 3.3 Infinite right circular cylinder : Différence entre versions

De Wiki
Aller à : navigation, rechercher
(Page créée avec « ====Definition==== Infinite Right Circular Cylinders are defined in a 3D space by their axis (a line or two equivalent vectors origin and direction) and their radius : ... »)
 
 
Ligne 5 : Ligne 5 :
  
 
====Implementation====
 
====Implementation====
The Infinite Right Circular Cylinder object in the SIRIUS library implements [MAT_GEO_InfiniteCylinderInterface the infinite cylinder interface]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/InfiniteRightCircularCylinder.html Javadoc] for a complete list of public methods.
+
The Infinite Right Circular Cylinder object in the SIRIUS library implements [[User Manual 3.3 The Infinite Cylinder Interface|the infinite cylinder interface]]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/InfiniteRightCircularCylinder.html Javadoc] for a complete list of public methods.
  
 
====Instantiation====
 
====Instantiation====

Version actuelle en date du 4 avril 2018 à 14:24

Definition

Infinite Right Circular Cylinders are defined in a 3D space by their axis (a line or two equivalent vectors origin and direction) and their radius :

CylinderStraight.png

Implementation

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

Instantiation

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

Vector3D origin = new Vector3D(1.0, 1.0, 1.0);
Vector3D direction = new Vector3D(2.0, 0.0, 0.0);
double radius = 2.0;
InfiniteRightCircularCylinder cylinder = new InfiniteRightCircularCylinder(origin, direction , radius);

Or directly from a Line and a double :

Line axis = new Line(origin, direction);
double radius = 2.0;
InfiniteRightCircularCylinder cylinder = new InfiniteRightCircularCylinder(axis, radius);

Usage

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