JNISpice
version 2.0.0

spice.basic
Class RayPlaneIntercept

java.lang.Object
  extended by spice.basic.RayPlaneIntercept

public class RayPlaneIntercept
extends java.lang.Object

Class RayPlaneIntercept represents the result of a ray-plane intercept computation.

Version 1.0.0 08-DEC-2009 (NJB)


Field Summary
static int INFINITY
           
 
Constructor Summary
RayPlaneIntercept(Ray ray, Plane plane)
          Construct a ray-plane intercept from a Ray and a Plane.
 
Method Summary
 Vector3 getIntercept()
          Fetch the intercept.
 int getInterceptCount()
          Fetch the intercept count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFINITY

public static final int INFINITY
See Also:
Constant Field Values
Constructor Detail

RayPlaneIntercept

public RayPlaneIntercept(Ray ray,
                         Plane plane)
                  throws SpiceException
Construct a ray-plane intercept from a Ray and a Plane.

Throws:
SpiceException
Method Detail

getInterceptCount

public int getInterceptCount()
Fetch the intercept count.


getIntercept

public Vector3 getIntercept()
                     throws PointNotFoundException
Fetch the intercept. This method should be called only if the intercept count is non-zero.

Throws:
PointNotFoundException

JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)