public class IsoscelesTrapezoid extends Object
Modifier and Type | Field and Description |
---|---|
private double |
_area |
private double |
_baseAngle |
private double |
_bottomHalf |
private double |
_heightHalf |
private double |
_topAngle |
private double |
_topHalf |
private Hep3Vector[] |
_vertices |
Constructor and Description |
---|
IsoscelesTrapezoid(double bottomHalf,
double topHalf,
double heightHalf)
Fully qualified constructor
|
Modifier and Type | Method and Description |
---|---|
double |
area()
The area of this trapezoid
|
double |
baseAngle() |
Hep3Vector[] |
getVertices()
Return the coordinates of the trapezoid vertices.
|
Inside |
inside(Hep3Vector pos)
Determines whether a point lies within or outside of this trapezoid.
|
private double |
t(Hep3Vector a,
Hep3Vector b,
Hep3Vector c) |
double |
topAngle() |
String |
toString() |
private double _bottomHalf
private double _topHalf
private double _heightHalf
private Hep3Vector[] _vertices
private double _area
private double _baseAngle
private double _topAngle
public IsoscelesTrapezoid(double bottomHalf, double topHalf, double heightHalf)
bottomHalf
- the half-width of the base dimensiontopHalf
- the half-width of the top dimensionheightHalf
- the half-heightpublic Hep3Vector[] getVertices()
public double area()
public Inside inside(Hep3Vector pos)
pos
- the point to checkpublic double baseAngle()
public double topAngle()
private double t(Hep3Vector a, Hep3Vector b, Hep3Vector c)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.