JNISpice
version 2.0.0

spice.basic
Class EllipsoidPointNearPoint

java.lang.Object
  extended by spice.basic.Vector3
      extended by spice.basic.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)


Constructor Summary
EllipsoidPointNearPoint(Ellipsoid ellipsoid, Vector3 point)
          Construct an EllipsoidPointNearPoint from an Ellipsoid and a specified point.
 
Method Summary
 double getDistance()
          Fetch the distance between the Ellipsoid and the point.
 Vector3 getNearPoint()
          Fetch the nearest point on the Ellipsoid to the point.
 
Methods inherited from class spice.basic.Vector3
add, assign, cross, dist, dot, getElt, hat, isZero, lcom, lcom, negate, norm, perp, proj, rotate, rotate, scale, sep, sub, toArray, toString, ucross
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EllipsoidPointNearPoint

public EllipsoidPointNearPoint(Ellipsoid ellipsoid,
                               Vector3 point)
                        throws SpiceException
Construct an EllipsoidPointNearPoint from an Ellipsoid and a specified point.

Throws:
SpiceException
Method Detail

getNearPoint

public Vector3 getNearPoint()
Fetch the nearest point on the Ellipsoid to the point.


getDistance

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


JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)