|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.ray.util.Ray
public class Ray
This class represents a light ray.
Field Summary | |
---|---|
boolean |
ambient
|
Spectrum3f |
color
The ray color. |
Vector3f |
direction
The ray direction. |
float |
directionDensity
The probability density of direction for this ray. |
float |
m_importance
|
Point3f |
origin
The ray origin in global coordinates. |
float |
originDensity
The probability density of origin for this ray. |
boolean |
reflected
|
Spectrum |
spectrum
The spectrum of the ray. |
boolean |
valid
|
Constructor Summary | |
---|---|
Ray()
|
|
Ray(Point3d newOrigin,
Vector3d newDirection,
float probability)
|
|
Ray(Point3f newOrigin,
Vector3f newDirection,
float probability)
|
|
Ray(Ray temp)
|
|
Ray(Spectrum factory)
|
Method Summary | |
---|---|
Line |
convert2Line()
|
boolean |
equals(java.lang.Object obj)
|
Color3f |
getColor()
|
Vector3f |
getDirection()
|
float |
getImportance()
|
Point3f |
getOrigin()
|
int |
hashCode()
|
void |
setImportance(float value)
|
void |
setRay(Ray ray)
|
java.lang.String |
toString()
|
void |
transform(Matrix4d mat,
Ray ray)
|
void |
transform(Matrix4f mat,
Ray ray)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean ambient
public final Spectrum3f color
public final Vector3f direction
public float directionDensity
Shader.generateRandomRays
and
Light.generateRandomRays
.
If pω+ is the probability density
that has been used for generating the random ray direction
(measured with respect to projected solid angle ω+, i.e.,
dω+ = cos θ dω),
then this field is set to
pω+(direction
). It is not
defined for rays emanating from a directional light source. It
may be Float.POSITIVE_INFINITY
as a result of
Shader.generateRandomRays
, namely
for ideal specular reflection or transmission.
public float m_importance
public final Point3f origin
Interior.attenuate(Interior.Input, Color3f)
and the methods of Light
and its subinterfaces.
public float originDensity
Light.generateRandomRays
.
If px is the probability density
that has been used for generating the random ray origin,
then this field is set to
px(origin
). It is not
defined for rays emanating from a point light source.
public boolean reflected
public final Spectrum spectrum
public boolean valid
Constructor Detail |
---|
public Ray()
public Ray(Point3d newOrigin, Vector3d newDirection, float probability)
public Ray(Point3f newOrigin, Vector3f newDirection, float probability)
public Ray(Ray temp)
public Ray(Spectrum factory)
Method Detail |
---|
public Line convert2Line()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Color3f getColor()
public Vector3f getDirection()
public float getImportance()
public Point3f getOrigin()
public int hashCode()
hashCode
in class java.lang.Object
public void setImportance(float value)
public void setRay(Ray ray)
public java.lang.String toString()
toString
in class java.lang.Object
public void transform(Matrix4d mat, Ray ray)
public void transform(Matrix4f mat, Ray ray)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |