Module JNISpice
Package spice.basic

Class 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.
    Applications using this class should call the 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EllipsePlaneIntercept

        public EllipsePlaneIntercept​(Ellipse ellipse,
                                     Plane plane)
                              throws SpiceException
        Construct an Ellipse-Plane intercept from an Ellipse and a Plane.
        Parameters:
        ellipse - Ellipse
        plane - 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