User Manual 3.3 Rectangular cone : Différence entre versions

De Wiki
Aller à : navigation, rechercher
(Page créée avec « ==== Definition ==== The rectangular cones are defined in a 3D space by their origin, their direction, height and the length and width of their base : File:pyramid3.pn... »)
 
 
Ligne 7 : Ligne 7 :
 
==== Implementation ====
 
==== Implementation ====
  
The RectangleCone object in the SIRIUS library implements the [MAT_GEO_ConeInterface Cone Interface]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/RectangleCone.html Javadoc] for a complete list of public methods.
+
The RectangleCone object in the SIRIUS library implements the [[User Manual 3.3 The Cone Interface|Cone Interface]]. Please refer to the [{{JavaDoc3.3}}/org/apache/commons/math3/geometry/euclidean/threed/RectangleCone.html Javadoc] for a complete list of public methods.
  
 
==== Instantiation ====
 
==== Instantiation ====

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

Definition

The rectangular cones are defined in a 3D space by their origin, their direction, height and the length and width of their base :

Pyramid3.png

Implementation

The RectangleCone object in the SIRIUS library implements the Cone 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 originCone = new Vector3D(1.0, 1.0, 1.0);
Vector3D direction = new Vector3D(2.0, 0.0, 0.0);
double length = 4.0;
double width = 2.0;
double height = 5.0;
RectangleCone cone = new RectangleCone(originCone, axis, length, width, height);

The local frame is built such as :

  • The axis is the W vector
  • U is orthogonal to W and its direction is defined by the 'input U vector"
  • V completes the frame

Usage

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