Modifier and Type | Field and Description |
---|---|
protected double |
rad |
protected LineSegment |
segment |
Constructor and Description |
---|
Cylinder(LineSegment sgm,
double r) |
Cylinder(Point p1,
Point p2,
double r) |
Modifier and Type | Method and Description |
---|---|
Cylinder |
clone()
Make a deep clone this volume.
|
static Cylinder |
createBoundingCylinder_CovarianceFit(PointList points) |
Point |
getCenter()
Get the geometric center of the shape.
|
double |
getLength() |
double |
getRadius() |
LineSegment |
getSegment() |
double |
getSurfaceArea() |
double |
getVolume()
Get the volume.
|
boolean |
inCylinder(Point p) |
java.lang.Double |
intersectionParameter(Line l) |
static void |
main(java.lang.String[] args) |
boolean |
overlaps(Volume vol)
Determine if this volume overlaps vol.
|
void |
setSegment(LineSegment sgm) |
void |
toConsole(int dec) |
java.lang.String |
toString() |
java.lang.String |
toString(int dec) |
protected double rad
protected LineSegment segment
public Cylinder(LineSegment sgm, double r)
public LineSegment getSegment()
public double getLength()
public double getRadius()
public double getVolume()
Volume
public double getSurfaceArea()
public void setSegment(LineSegment sgm)
public boolean inCylinder(Point p)
public java.lang.Double intersectionParameter(Line l)
public static void main(java.lang.String[] args)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int dec)
public void toConsole(int dec)
public Point getCenter()
Shape
public static Cylinder createBoundingCylinder_CovarianceFit(PointList points)
public boolean overlaps(Volume vol)
Volume