|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.math.geom.Ray
public class Ray
Represents a geometric ray, compound of a Point3
and a
Vector3
Constructor Summary | |
---|---|
Ray(Point3 p,
Vector3 v)
Constructs a ray from a point and a vector |
Method Summary | |
---|---|
Point3 |
getPoint()
Returns the starting point for this ray |
Point3 |
getPoint(float t)
Returns the point in the ray that corresponds to the given t parameter |
Vector3 |
getVector()
Returns the vector defining the ray |
static Ray |
getVolatileRay(Point3 p,
Vector3 v)
|
void |
setVector(float x,
float y,
float z)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ray(Point3 p, Vector3 v)
p
- the pointv
- the vectorMethod Detail |
---|
public Point3 getPoint()
public Point3 getPoint(float t)
t
- t parameter
public Vector3 getVector()
public static Ray getVolatileRay(Point3 p, Vector3 v)
public void setVector(float x, float y, float z)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |