|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.scene.SceneObject
apps.lightrays.raytracer.scene.geometry.Plane
public class Plane
The Class Plane.
Constructor Summary | |
---|---|
Plane()
Instantiates a new plane. |
|
Plane(Point center,
Vector perpendicular,
OpticalProperties prop)
Instantiates a new plane. |
Method Summary | |
---|---|
Shader |
createShader(Ray ray)
Creates the shader. |
Vector |
getNormal(Point intersect)
Gets the normal. |
Colour |
getPixel(Point p)
Gets the pixel. |
RayHitInfo |
intersect(Ray ray)
Intersect. |
void |
setCenter(Point center)
Sets the center. |
void |
setPerpendicular(Vector perp)
Sets the perpendicular. |
java.lang.String |
toString()
|
Methods inherited from class apps.lightrays.raytracer.scene.SceneObject |
---|
getOpticProperties, setOpticProperties, setScene |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Plane()
public Plane(Point center, Vector perpendicular, OpticalProperties prop)
center
- the centerperpendicular
- the perpendicularprop
- the propMethod Detail |
---|
public Shader createShader(Ray ray)
SceneObject
createShader
in class SceneObject
ray
- the r
public Vector getNormal(Point intersect)
SceneObject
getNormal
in class SceneObject
intersect
- the intersect
public Colour getPixel(Point p)
p
- the p
public RayHitInfo intersect(Ray ray)
SceneObject
intersect
in class SceneObject
ray
- the r
public void setCenter(Point center)
center
- the new centerpublic void setPerpendicular(Vector perp)
perp
- the new perpendicularpublic java.lang.String toString()
toString
in class SceneObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |