|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.geometry.DefaultRay
public final class DefaultRay
Default implementation of a Ray
Constructor Summary | |
---|---|
DefaultRay(javax.vecmath.Tuple3f origin,
javax.vecmath.Tuple3f direction)
Creates a new DefaultRay with the given origin and direction. |
Method Summary | |
---|---|
javax.vecmath.Vector3f |
getDirection()
Returns a copy of the direction of the ray. |
javax.vecmath.Point3f |
getOrigin()
Returns a copy of the origin of the ray. |
static Ray |
normalize(Ray ray)
Returns a copy of the given ray, where the direction is normalized. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultRay(javax.vecmath.Tuple3f origin, javax.vecmath.Tuple3f direction)
origin
- The origindirection
- The directionMethod Detail |
---|
public static Ray normalize(Ray ray)
ray
- The ray
public javax.vecmath.Point3f getOrigin()
Ray
getOrigin
in interface Ray
public javax.vecmath.Vector3f getDirection()
Ray
getDirection
in interface Ray
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |