|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRay3D
public class Ray3D
This class contains methods to handle Ray3D objects.
Constructor Summary | |
---|---|
Ray3D()
Constructor to create a Ray3D . |
|
Ray3D(Vector4 p,
Vector4 d)
Constructor to create a Ray3D . |
Method Summary | |
---|---|
Vector4 |
getDirection()
Returns the direction of the Ray3D . |
Vector4 |
getPoint()
Returns the starting point of the Ray3D . |
Vector4 |
getPosition(float t)
Returns a position along a Ray3D |
void |
setDirection(Vector4 d)
Sets a new direction to the Ray3D . |
void |
setPoint(Vector4 p)
Sets a new starting point to the Ray3D . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ray3D(Vector4 p, Vector4 d)
Ray3D
.
p
- a Vector4
containing the startposition of the ray.d
- a Vector4
containing the direction of the ray.public Ray3D()
Ray3D
.
Method Detail |
---|
public void setDirection(Vector4 d)
Ray3D
.
d
- a Vector4
containing the new direction.public void setPoint(Vector4 p)
Ray3D
.
p
- a Vector4
containing the new startpoint.public Vector4 getDirection()
Ray3D
.
Vector4
containing the direction.public Vector4 getPoint()
Ray3D
.
Vector4
containing the point.public Vector4 getPosition(float t)
Ray3D
t
- the parameter
Vector4
containing the position.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |