Package org.jlab.geometry.prim
Class Trap
java.lang.Object
org.jlab.geometry.prim.Trap
- All Implemented Interfaces:
- Primitive
An axis-aligned solid trapezoid defined by dimensions, inspired by G4Trap
- Author:
- Andrey Kim;
- 
Constructor SummaryConstructorsConstructorDescriptionTrap(double pDz, double pTheta, double pPhi, double pDy1, double pDx1, double pDx2, double pAlp1, double pDy2, double pDx3, double pDx4, double pAlp2) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the property storage of this primitive.Returns the polygons that define this primitive.
- 
Constructor Details- 
Trappublic Trap(double pDz, double pTheta, double pPhi, double pDy1, double pDx1, double pDx2, double pAlp1, double pDy2, double pDx3, double pDx4, double pAlp2) 
 
- 
- 
Method Details- 
toPolygonsDescription copied from interface:PrimitiveReturns the polygons that define this primitive. Note: this method computes the polygons each time this method is called. The polygons can be cached inside aCSGobject.- Specified by:
- toPolygonsin interface- Primitive
- Returns:
- a list of polygons that define this primitive
 
- 
getPropertiesDescription copied from interface:PrimitiveReturns the property storage of this primitive.- Specified by:
- getPropertiesin interface- Primitive
- Returns:
- the property storage of this primitive
 
 
-