Class Segment


  • public class Segment
    extends Object
    Performs the computation of the coordinates along the integration path.
    Since:
    13.0
    Author:
    Bryan Cazabonne
    • Constructor Detail

      • Segment

        public Segment​(int n,
                       Ray ray,
                       double s1,
                       double s2)
        Constructor.
        Parameters:
        n - number of intervals for integration (2 points per interval, hence 2n points will be generated)
        ray - ray-perigee parameters
        s1 - lower boundary of integration
        s2 - upper boundary for integration
    • Method Detail

      • getPoint

        public GeodeticPoint getPoint​(int index)
        Get point along the ray.
        Parameters:
        index - point index (between O included and getNbPoints() excluded)
        Returns:
        point on ray
        Since:
        13.0
      • getNbPoints

        public int getNbPoints()
        Get number of points.

        Note there are 2 points per interval, so index must be between 0 (included) and 2n (excluded) for a segment built with n intervals

        Returns:
        number of points
      • getInterval

        public double getInterval()
        Get the integration step.
        Returns:
        the integration step in meters