|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Ray
public class Ray
Class Ray represents rays in three-dimensional Euclidean space.
Rays always have unit-length direction vectors.
Version 1.0.0 03-DEC-2009 (NJB)
Constructor Summary | |
---|---|
Ray()
Zero-arguments constructor. |
|
Ray(Ray r)
Copy constructor. |
|
Ray(Vector3 vertex,
Vector3 direction)
Create a Ray from a vertex and direction. |
Method Summary | |
---|---|
Vector3 |
getDirection()
Return a direction vector for this Ray.. |
Vector3 |
getVertex()
Return the vertex for this Ray.. |
java.lang.String |
toString()
Convert this Ray to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ray()
public Ray(Ray r)
public Ray(Vector3 vertex, Vector3 direction) throws SpiceException
The stored direction vector is a unit-length copy of the corresponding input vector.
SpiceException
Method Detail |
---|
public Vector3 getVertex()
public Vector3 getDirection()
public java.lang.String toString()
toString
in class java.lang.Object
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |