|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSurface
Sphere
public class Sphere
Represents a solid sphere.
| Field Summary |
|---|
| Fields inherited from class Surface |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
Sphere(Point center,
double radius)
|
|
Sphere(Point center,
double radius,
Material material)
|
|
| Method Summary | |
|---|---|
Intersection |
getIntersection(Ray query)
Returns information about the closest point on this surface that the query ray hits, where the ``distance'' along the ray will be at least one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sphere(Point center,
double radius,
Material material)
public Sphere(Point center,
double radius)
| Method Detail |
|---|
public Intersection getIntersection(Ray query)
Surface
getIntersection in class Surface
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||