Module JNISpice
Package spice.basic

Class RayEllipsoidIntercept


  • public class RayEllipsoidIntercept
    extends java.lang.Object
    Class RayEllipsoidIntercept represents the result of a Ray-Ellipsoid intercept computation.

    This is a low-level, "pure geometric" class having functionality analogous to that provided by the CSPICE routine surfpt_c. SPICE application developers should consider using the high-level class SurfaceIntercept instead.

    Version 1.0.0 03-DEC-2009 (NJB)

    • Constructor Summary

      Constructors 
      Constructor Description
      RayEllipsoidIntercept​(Ray ray, Ellipsoid ellipsoid)
      Construct a ray-ellipsoid intercept from a Ray and an Ellipsoid.
    • Method Summary

      Modifier and Type Method Description
      Vector3 getIntercept()
      Fetch the intercept.This method should be called only if the intercept was found, as indicated by the method wasFound().
      boolean wasFound()
      Fetch the found flag.
      • Methods inherited from class java.lang.Object

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

      • found

        private boolean found
      • ray

        private Ray ray
    • Constructor Detail

      • RayEllipsoidIntercept

        public RayEllipsoidIntercept​(Ray ray,
                                     Ellipsoid ellipsoid)
                              throws SpiceException
        Construct a ray-ellipsoid intercept from a Ray and an Ellipsoid.
        Parameters:
        ray - Ray
        ellipsoid - Ellipsoid
        Throws:
        SpiceException - exception
    • Method Detail

      • wasFound

        public boolean wasFound()
        Fetch the found flag.
        Returns:
        boolean
      • getIntercept

        public Vector3 getIntercept()
                             throws PointNotFoundException
        Fetch the intercept.This method should be called only if the intercept was found, as indicated by the method wasFound().
        Returns:
        Vector3
        Throws:
        PointNotFoundException - exception