Constructor and Description |
---|
Lens(Sphere s0,
Sphere s1)
Construct a lens from the two spheres.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Lens(Sphere s0, Sphere s1)
public double getRadius()
public double getFocalDistance(int i)
public double getSphereRadius(int i)
public Point getSphereCenter(int i)
public Point getCenter()
Shape
public boolean overlaps(Volume vol)
Volume
public double getVolume()
public double distance(Point p)
public double distance(Lens l)
public static void main(java.lang.String[] args)
args
-