| Constructor and Description |
|---|
Cone(Point apex,
Point baseCenter,
double baseRad)
Construct a cone from the apex-point, the center of the base and the radius of the base.
|
Cone(Point apex,
Vector axis,
double angle,
double axisLength) |
| Modifier and Type | Method and Description |
|---|---|
Cone |
clone()
Make a deep clone this volume.
|
double |
getAxisLength() |
Point |
getBaseCenter() |
double |
getBaseRadius() |
Point |
getCenter()
Get the geometric center of the shape.
|
double |
getVolume()
Get the volume.
|
static void |
main(java.lang.String[] args) |
boolean |
overlaps(Volume vol)
Determine if this volume overlaps vol.
|
public double getAxisLength()
public Point getBaseCenter()
public double getBaseRadius()
public double getVolume()
Volumepublic Point getCenter()
Shapepublic boolean overlaps(Volume vol)
Volumepublic static void main(java.lang.String[] args)