|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSurface
Polygon
public class Polygon
Represents a three-dimensional flat surface. This surface should be fully opaque.
Field Summary |
---|
Fields inherited from class Surface |
---|
EMPTY |
Constructor Summary | |
---|---|
Polygon(Point[] vertices,
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 Polygon(Point[] vertices, Material material)
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 |