|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.math.Ray3D
public final class Ray3D
A ray consisting of an origin point and a unit direction vector.
| Constructor Summary | |
|---|---|
Ray3D()
Creates an empty (invalid) ray. |
|
Ray3D(Ray3D other)
Copy constructor. |
|
Ray3D(Vector3f origin,
Vector3f direction)
Creates a ray with the values contained in the supplied origin point and unit direction vector. |
|
| Method Summary | |
|---|---|
Vector3f |
getDirection()
Returns a reference to the ray's unit direction vector. |
Vector3f |
getOrigin()
Returns a reference to the ray's point of origin. |
Ray3D |
set(Ray3D other)
Copies the parameters of another ray. |
Ray3D |
set(Vector3f origin,
Vector3f direction)
Sets the ray parameters to the values contained in the supplied vectors. |
String |
toString()
|
Ray3D |
transform(Transform3D transform)
Transforms this ray. |
Ray3D |
transform(Transform3D transform,
Ray3D result)
Transforms this ray, placing the result in the object provided. |
Ray3D |
transformLocal(Transform3D transform)
Transforms this ray in-place. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ray3D(Vector3f origin,
Vector3f direction)
public Ray3D(Ray3D other)
public Ray3D()
| Method Detail |
|---|
public Vector3f getOrigin()
public Vector3f getDirection()
public Ray3D transformLocal(Transform3D transform)
public Ray3D transform(Transform3D transform)
public Ray3D transform(Transform3D transform,
Ray3D result)
public Ray3D set(Ray3D other)
public Ray3D set(Vector3f origin,
Vector3f direction)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||