|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.engine.Ray
public class Ray
A Ray object represents a 3d ray. It stores the origin and direction of a 3d ray, which are vector quantities, as Vector objects.
| Constructor Summary | |
|---|---|
Ray()
Constructs a Ray object with origin and direction at the origin. |
|
Ray(Vector origin,
Vector direction)
Constructs a Ray object using the specified origin and direction vectors. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
double |
dDotd()
|
double[] |
getCoords()
|
Vector |
getDirection()
|
Vector |
getOrigin()
|
double |
oDotd()
|
double |
oDoto()
|
Vector |
pointAt(double t)
|
void |
setDirection(Vector direction)
Sets the direction of this Ray object to the specified direction vector. |
void |
setOrigin(Vector origin)
Sets the origin of this Ray object to the specified origin vector. |
String |
toString()
|
double[] |
transform(TransformMatrix tm)
Transforms the origin and direction of this ray using the specified TransformMatrix. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ray()
public Ray(Vector origin,
Vector direction)
| Method Detail |
|---|
public void setOrigin(Vector origin)
public void setDirection(Vector direction)
public double[] transform(TransformMatrix tm)
tm - TransformMatrix to use.
public double[] getCoords()
public double oDoto()
public double dDotd()
public double oDotd()
public Vector getOrigin()
public Vector getDirection()
public Vector pointAt(double t)
public Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||