Module JNISpice
Package spice.basic

Class EllipsoidPointNearPoint


  • public class EllipsoidPointNearPoint
    extends Vector3
    Class EllipsoidPointNearPoint represents the result of an Ellipsoid-Point near point computation. This computation finds the nearest point on a given ellipsoid to a specified point. The input point may be inside the ellipsoid.

    An EllipsoidPointNearPoint instance consists of

    1. An inherited array of 3 doubles representing the near point on the ellipsoid.
    2. A double representing the altitude of the input point relative to the ellipsoid

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

    Version 2.0.0 23-JAN-2017 (NJB)

    This class now is derived from Vector3.

    Version 1.0.0 28-NOV-2009 (NJB)

    • Field Detail

      • dist

        private double dist
    • Constructor Detail

      • EllipsoidPointNearPoint

        public EllipsoidPointNearPoint​(Ellipsoid ellipsoid,
                                       Vector3 point)
                                throws SpiceException
        Construct an EllipsoidPointNearPoint from an Ellipsoid and a specified point.
        Parameters:
        ellipsoid - Ellipsoid
        point - Vector3
        Throws:
        SpiceException - exception
    • Method Detail

      • getNearPoint

        public Vector3 getNearPoint()
        Fetch the nearest point on the Ellipsoid to the point.
        Returns:
        Vector3
      • getDistance

        public double getDistance()
        Fetch the distance between the Ellipsoid and the point.
        Returns:
        double