public class LSS extends java.lang.Object implements Volume
Modifier and Type | Field and Description |
---|---|
double |
rad |
LineSegment |
segment |
Constructor and Description |
---|
LSS(LineSegment segment,
double r)
Construct a capsule using a line-segment and a radius (used both for hemispheres and
cylinder shape).
|
LSS(Point p1,
Point p2,
double r)
Construct a capsule using two endpoints (center of hemispheres) and a radius (used
both for hemispheres and cylinder shape).
|
Modifier and Type | Method and Description |
---|---|
LSS |
clone()
Make a deep clone this volume.
|
double |
closestSegmentPoint(LSS capsule) |
boolean |
contains(Point p) |
static LSS |
createBoundingLSS_covariance(PointList points) |
static LSS |
createBoundingLSS_MaxDist(LSS v1,
LSS v2) |
static LSS |
createBoundingLSS(PointList points) |
double |
distanceToPoint(Point point) |
Point |
getCenter()
Get the geometric center of the shape.
|
double |
getVolume()
Get the volume.
|
boolean |
overlaps(LSS capsule) |
boolean |
overlaps(Volume vol)
Determine if this volume overlaps vol.
|
java.lang.String |
toString() |
public LineSegment segment
public double rad
public LSS(Point p1, Point p2, double r)
public LSS(LineSegment segment, double r)
public double distanceToPoint(Point point)
public boolean overlaps(LSS capsule)
public double closestSegmentPoint(LSS capsule)
public boolean overlaps(Volume vol)
Volume
public boolean contains(Point p)
public double getVolume()
Volume
public Point getCenter()
Shape
public java.lang.String toString()
toString
in class java.lang.Object