|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.geom3d.volumes.Cone
public class Cone
A three-dimensional cone represented by two points on its central axis. The first point is the bottom and the second is the tip of the cone.
Field Summary | |
---|---|
Point |
p1
|
Point |
p2
|
double |
rad
|
Constructor Summary | |
---|---|
Cone(Point p1,
Point p2,
double r)
|
Method Summary | |
---|---|
Cone |
clone()
Make a deep clone this volume. |
Point |
getCenter()
Get the geometric center of the shape. |
double |
getVolume()
Get the volume. |
boolean |
overlaps(Volume vol)
Determine if this volume overlaps vol. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Point p1
public Point p2
public double rad
Constructor Detail |
---|
public Cone(Point p1, Point p2, double r)
Method Detail |
---|
public double getVolume()
Volume
getVolume
in interface Volume
public Point getCenter()
Shape
getCenter
in interface Shape
public Cone clone()
Volume
clone
in interface Volume
clone
in class java.lang.Object
public boolean overlaps(Volume vol)
Volume
overlaps
in interface Volume
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |