- java.lang.Object
-
- 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)
-
-
Constructor Summary
Constructors Constructor Description RayPlaneIntercept(Ray ray, Plane plane)
Construct a ray-plane intercept from a Ray and a Plane.
-
Method Summary
Modifier and Type Method Description Vector3
getIntercept()
Fetch the intercept.This method should be called only if the intercept count is non-zero.int
getInterceptCount()
Fetch the intercept count.
-
-
-
Field Detail
-
INFINITY
public static final int INFINITY
- See Also:
- Constant Field Values
-
nxpts
private int nxpts
-
xpt
private Vector3 xpt
-
-
Constructor Detail
-
RayPlaneIntercept
public RayPlaneIntercept(Ray ray, Plane plane) throws SpiceException
Construct a ray-plane intercept from a Ray and a Plane.- Parameters:
ray
- Rayplane
- Plane- Throws:
SpiceException
- exception
-
-
Method Detail
-
getInterceptCount
public int getInterceptCount()
Fetch the intercept count.- Returns:
- int
-
getIntercept
public Vector3 getIntercept() throws PointNotFoundException
Fetch the intercept.This method should be called only if the intercept count is non-zero.- Returns:
- Vector3
- Throws:
PointNotFoundException
- exception
-
-