- java.lang.Object
-
- spice.basic.Vector3
-
- 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
- An inherited array of 3 doubles representing the near point on the ellipsoid.
- 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
Constructors Constructor Description EllipsoidPointNearPoint(Ellipsoid ellipsoid, Vector3 point)
Construct an EllipsoidPointNearPoint from an Ellipsoid and a specified point.
-
Method Summary
Modifier and Type Method Description double
getDistance()
Fetch the distance between the Ellipsoid and the point.Vector3
getNearPoint()
Fetch the nearest point on the Ellipsoid to the point.
-
-
-
Constructor Detail
-
EllipsoidPointNearPoint
public EllipsoidPointNearPoint(Ellipsoid ellipsoid, Vector3 point) throws SpiceException
Construct an EllipsoidPointNearPoint from an Ellipsoid and a specified point.- Parameters:
ellipsoid
- Ellipsoidpoint
- 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
-
-