|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.engine.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 | |
java.lang.Object |
clone()
|
Vector |
getDirection()
Returns the direction of this Ray object as a Vector object. |
Vector |
getOrigin()
Returns the origin of this Ray object as a Vector object. |
Vector |
pointAt(double t)
Returns the point on the ray represented by this Ray object at distance t from the origin as a Vector object. |
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. |
java.lang.String |
toString()
Returns a String representation of this Ray object. |
| Methods inherited from class java.lang.Object |
equals, finalize, 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 Vector getOrigin()
public Vector getDirection()
public Vector pointAt(double t)
public java.lang.Object clone()
public java.lang.String toString()
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||