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

De Patrius
Aller à la navigation Aller à la recherche
Page créée avec « ==== Definition ==== The right circular cones are defined in a 3D space by their origin, their axis, height and the half angle : center ==== Imp... »
 
Aucun résumé des modifications
 
Ligne 7 : Ligne 7 :
==== Implementation ====
==== Implementation ====


The RightCircularCone 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/RightCircularCone.html Javadoc] for a complete list of public methods.
The RightCircularCone 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/RightCircularCone.html Javadoc] for a complete list of public methods.


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

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

Definition

The right circular cones are defined in a 3D space by their origin, their axis, height and the half angle :

Implementation

The RightCircularCone 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 angle = FastMath.PI / 4.0;
double height = 5.0;
RightCircularCone cone = new RightCircularCone(originCone, axis, angle, height);

The local frame is built such as :

  • The axis is the W vector
  • U and V are two orthogonal and normalised vectors to complete the frame

Usage

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