|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectProject3DRay
public class Project3DRay
Constructor Summary | |
---|---|
Project3DRay()
|
Method Summary | |
---|---|
static Interval1D |
getProjectedInterval(Ray3D r,
Camera c)
Projects the supplied Ray3D to the supplied
Camera , which is assumed to be located in origo looking
down the negative Z-axis. |
static boolean |
isBackgroundColor(int color)
Determines whether the supplied color is background or not. |
static void |
printColor(int color)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Project3DRay()
Method Detail |
---|
public static Interval1D getProjectedInterval(Ray3D r, Camera c)
Ray3D
to the supplied
Camera
, which is assumed to be located in origo looking
down the negative Z-axis. The method then computes which part of the
ray that intersects the silhouette of the camera's image.
If no part of the ray is contained within the silhouette, an
empty interval is returned. In the current implementation, only single
intervals are supported, limiting the objects to be convex.
r
- the ray to project.c
- the camera to project to.
public static boolean isBackgroundColor(int color)
color
- the color to test.
public static void printColor(int color)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |