Class Trd

java.lang.Object
org.jlab.geometry.prim.Trd
All Implemented Interfaces:
Primitive

public class Trd extends Object implements Primitive
An axis-aligned solid trapezoid defined by dimensions, inspired by G4Trap
Author:
Andrey Kim;
  • Constructor Details Link icon

    • Trd Link icon

      public Trd(double pDx1, double pDx2, double pDy1, double pDy2, double pDz)
  • Method Details Link icon

    • toPolygons Link icon

      public List<Polygon> toPolygons()
      Description copied from interface: Primitive
      Returns the polygons that define this primitive. Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
      Specified by:
      toPolygons in interface Primitive
      Returns:
      a list of polygons that define this primitive
    • getProperties Link icon

      public PropertyStorage getProperties()
      Description copied from interface: Primitive
      Returns the property storage of this primitive.
      Specified by:
      getProperties in interface Primitive
      Returns:
      the property storage of this primitive