|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.geom3d.volumes.Lens
public class Lens
A lens is the intersection between two spheres.
Constructor Summary | |
---|---|
Lens(Sphere s0,
Sphere s1)
Construct a lens from the two spheres. |
Method Summary | |
---|---|
Lens |
clone()
Make a deep clone this volume. |
double |
distance(Lens l)
|
double |
distance(Point p)
|
Point |
getCenter()
Get the geometric center of the shape. |
double |
getFocalDistance(int i)
The distance from a focal point to the equator of the lens |
double |
getRadius()
Radius of the equator of the lens |
Point |
getSphereCenter(int i)
|
double |
getSphereRadius(int i)
|
double |
getVolume()
The volume of the lens |
static void |
main(java.lang.String[] args)
|
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 |
Constructor Detail |
---|
public Lens(Sphere s0, Sphere s1)
Method Detail |
---|
public double getRadius()
public double getFocalDistance(int i)
public double getSphereRadius(int i)
public Point getSphereCenter(int i)
public Point getCenter()
Shape
getCenter
in interface Shape
public boolean overlaps(Volume vol)
Volume
overlaps
in interface Volume
public double getVolume()
getVolume
in interface Volume
public Lens clone()
Volume
clone
in interface Volume
clone
in class java.lang.Object
public double distance(Point p)
public double distance(Lens l)
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |