|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.raytracer.scene.Camera
public class Camera
The Class Camera.
Constructor Summary | |
---|---|
Camera()
Instantiates a new camera. |
|
Camera(java.awt.Dimension viewport_size)
Instantiates a new camera. |
Method Summary | |
---|---|
Ray |
generateRay(Scene s,
double x,
double y)
Generate ray. |
Ray[][] |
generateSupersampledRays(Scene s,
int x,
int y,
int side,
double f)
Generate supersampled rays. |
void |
setLookAt(Vector focusedPosition)
Sets the look at. |
void |
setViewpoint(Vector eyePosition)
Sets the viewpoint. |
void |
setViewportSize(java.awt.Dimension size)
Sets the viewport size. |
void |
updateVectors()
Update vectors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Camera()
public Camera(java.awt.Dimension viewport_size)
viewport_size
- the viewport_sizeMethod Detail |
---|
public final Ray generateRay(Scene s, double x, double y)
s
- the sx
- the xy
- the y
public final Ray[][] generateSupersampledRays(Scene s, int x, int y, int side, double f)
s
- the sx
- the xy
- the yside
- the sidef
- the f
public void setLookAt(Vector focusedPosition)
focusedPosition
- the new look atpublic void setViewpoint(Vector eyePosition)
eyePosition
- the new viewpointpublic void setViewportSize(java.awt.Dimension size)
size
- the new viewport sizepublic void updateVectors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |