- java.lang.Object
-
- spice.basic.EllipsePlaneIntercept
-
public class EllipsePlaneIntercept extends java.lang.Object
Class EllipsePlaneIntercept represents the result of an ellipse-plane intercept computation.Each EllipsePlaneIntercept instance consists of
- An intersection count.
- A Vector3 instance representing one point of intersection. This instance is valid if and only if the intersection count is at least 1 but is finite.
- A Vector3 instance representing a second point of intersection. This instance is valid if and only if the intersection count is 2.
wasFound()
method before attempting to retrieve the points of intersection. Version 1.0.1 16-DEC-2016 (NJB) Corrected description in the class abstract. Version 1.0.0 09-DEC-2009 (NJB)
-
-
Constructor Summary
Constructors Constructor Description EllipsePlaneIntercept(Ellipse ellipse, Plane plane)
Construct an Ellipse-Plane intercept from an Ellipse and a Plane.
-
Method Summary
Modifier and Type Method Description int
getInterceptCount()
Fetch the intercept count.Vector3[]
getIntercepts()
Fetch the intercepts.This method should be called only if the intercept count is non-zero and finite.boolean
wasFound()
Indicate that a finite intersection exists.
-
-
-
Field Detail
-
INFINITY
public static final int INFINITY
- See Also:
- Constant Field Values
-
nxpts
private int nxpts
-
xpt1
private Vector3 xpt1
-
xpt2
private Vector3 xpt2
-
-
Constructor Detail
-
EllipsePlaneIntercept
public EllipsePlaneIntercept(Ellipse ellipse, Plane plane) throws SpiceException
Construct an Ellipse-Plane intercept from an Ellipse and a Plane.- Parameters:
ellipse
- Ellipseplane
- Plane- Throws:
SpiceException
- exeption
-
-
Method Detail
-
getInterceptCount
public int getInterceptCount()
Fetch the intercept count.- Returns:
- int
-
wasFound
public boolean wasFound()
Indicate that a finite intersection exists.- Returns:
- boolean
-
getIntercepts
public Vector3[] getIntercepts() throws PointNotFoundException
Fetch the intercepts.This method should be called only if the intercept count is non-zero and finite.- Returns:
- Vector3[]
- Throws:
PointNotFoundException
- exception
-
-