|
JPBRT 0.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpbrt.core.Ray
public class Ray
Ray
.
References:
M. Pharr, G. Humphreys. (2004). Physically Based Rendering. Morgan Kaufmann.
Page 57.
Field Summary | |
---|---|
Vector |
d
Direction of the ray. |
int |
depth
??. |
float |
maxt
Ray segment maximum along the infinite extent of the ray. |
float |
mint
Ray segment minimum along the infinite extent of the ray. |
Point |
o
Origin of the ray. |
static float |
RAY_EPSILON
|
float |
time
Time of the ray for motion blur simulation. |
Constructor Summary | |
---|---|
Ray()
|
|
Ray(Point origin,
Vector direction,
float start)
|
|
Ray(Point origin,
Vector direction,
float start,
float end)
|
|
Ray(Point origin,
Vector direction,
float start,
float end,
float time)
|
|
Ray(Point origin,
Vector direction,
float start,
float end,
float time,
int depth)
|
|
Ray(Point origin,
Vector direction,
Ray parent,
float start,
float end,
float t)
|
|
Ray(Ray that)
|
Method Summary | |
---|---|
boolean |
hasNaNs()
|
void |
setTo(Point origin,
Vector direction,
float start,
float end)
|
void |
setTo(Point origin,
Vector direction,
float start,
float end,
float time)
|
void |
setTo(Point origin,
Vector direction,
float start,
float end,
float time,
int depth)
|
void |
setTo(Point origin,
Vector direction,
Ray parent,
float start,
float end,
float t)
|
java.lang.String |
toString()
|
Point |
transform(float t)
Returns the location of the point at Distance t on the ray. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final float RAY_EPSILON
public Point o
public Vector d
public float mint
RAY_EPSILON
instead with 0 to avoid
self-intersections of the ray with a shape at its origin.
public float maxt
public float time
public int depth
Constructor Detail |
---|
public Ray()
public Ray(Point origin, Vector direction, float start)
public Ray(Point origin, Vector direction, float start, float end)
public Ray(Point origin, Vector direction, float start, float end, float time)
public Ray(Point origin, Vector direction, float start, float end, float time, int depth)
public Ray(Point origin, Vector direction, Ray parent, float start, float end, float t)
public Ray(Ray that)
Method Detail |
---|
public void setTo(Point origin, Vector direction, Ray parent, float start, float end, float t)
public void setTo(Point origin, Vector direction, float start, float end)
public void setTo(Point origin, Vector direction, float start, float end, float time)
public void setTo(Point origin, Vector direction, float start, float end, float time, int depth)
public Point transform(float t)
public boolean hasNaNs()
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 2010 © by the authors and contributors of the JPBRT project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |