public class RightRegularPolyhedron extends AbstractSolid
Modifier and Type | Field and Description |
---|---|
private RegularPolygon |
_innerPolygon |
private boolean |
_isHollow |
private int |
_nsides |
private RegularPolygon |
_outerPolygon |
private double |
_rmax |
private double |
_rmin |
private double |
_zmax |
private double |
_zmin |
name
Constructor and Description |
---|
RightRegularPolyhedron(String name,
int nsides,
double radius,
double zmin,
double zmax)
Fully qualified constructor for a solid right regular polyhedron.
|
RightRegularPolyhedron(String name,
int nsides,
double rmin,
double rmax,
double zmin,
double zmax)
Fully qualified constructor for a hollow right regular polyhedron.
|
Modifier and Type | Method and Description |
---|---|
double |
getCubicVolume() |
RegularPolygon |
getInnerPolygon()
The polygon representing the 2D end faces of the
inner boundary of this solid.
|
int |
getNumberOfSides() |
RegularPolygon |
getOuterPolygon()
The polygon representing the 2D end faces.
|
double |
getRMax() |
double |
getRMin()
The radius of the inscribe polygon if hollow.
|
double |
getZMax() |
double |
getZMin() |
Inside |
inside(Hep3Vector pos)
Determines whether a point lies within or outside of this solid.
|
boolean |
isHollow()
Is this a hollow polygon?
|
double |
polygonalArea()
Returns the area of the polygonal face
|
private double |
t(Hep3Vector a,
Hep3Vector b,
Hep3Vector c) |
String |
toString() |
double |
volume()
Returns the volume of this solid
|
getName
private int _nsides
private double _rmin
private double _rmax
private double _zmin
private double _zmax
private RegularPolygon _innerPolygon
private RegularPolygon _outerPolygon
private boolean _isHollow
public RightRegularPolyhedron(String name, int nsides, double rmin, double rmax, double zmin, double zmax)
name
- the name of this solidnsides
- the number of sides of the regular polygon forming the ends.rmin
- the radius of the inner polygon's inscribed circlermax
- the radius of the outer polygon's circumscribed circlezmin
- the minimum z extentzmax
- the maximum z extentpublic RightRegularPolyhedron(String name, int nsides, double radius, double zmin, double zmax)
name
- the name of this solidnsides
- the number of sides of the regular polygon forming the ends.radius
- the radius of the outer polygon's circumscribed circlezmin
- the minimum z extentzmax
- the maximum z extentpublic double getCubicVolume()
public Inside inside(Hep3Vector pos)
pos
- the point to checkpublic double polygonalArea()
public boolean isHollow()
public double volume()
public int getNumberOfSides()
public double getZMin()
public double getZMax()
public double getRMin()
public double getRMax()
public RegularPolygon getInnerPolygon()
public RegularPolygon getOuterPolygon()
private double t(Hep3Vector a, Hep3Vector b, Hep3Vector c)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.