|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.Ray
public class Ray
a ray
Field Summary | |
---|---|
Vector3D |
direction
|
Point3D |
start
|
Constructor Summary | |
---|---|
Ray()
standard constructor |
|
Ray(Point3D start,
Vector3D direction)
constructor |
|
Ray(Ray ray)
copy constructor |
Method Summary | |
---|---|
void |
advance(double t)
advances the start point of the ray by t*direction |
Point3D |
getPoint(double t)
returns the point start+t*direction |
void |
set(Point3D start,
Vector3D direction)
sets the ray |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Point3D start
public Vector3D direction
Constructor Detail |
---|
public Ray()
public Ray(Ray ray)
ray
- [in] the ray to copypublic Ray(Point3D start, Vector3D direction)
start
- [in] start pointdirection
- [in] vector of directionMethod Detail |
---|
public void set(Point3D start, Vector3D direction)
start
- [in] start pointdirection
- [in] vector of directionpublic Point3D getPoint(double t)
t
- [in] distance
public void advance(double t)
t
- [in] distance to advance the ray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |