Class Line

All Implemented Interfaces:
AutoCloseable

public final class Line extends Curve implements AutoCloseable
Represents a line.
See Also:
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Curve
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Curve
    • getStartPoint

      @NotNull public Coordinate getStartPoint()
      Returns the start point of the line segment.
      Returns:
      the start point of the line segment.
    • getEndPoint

      @NotNull public Coordinate getEndPoint()
      Returns the end point of the line segment.
      Returns:
      the end point of the line segment.
    • getInterpolationType

      @NotNull public LineInterpolationType getInterpolationType()
      Returns the interpolation type of the line segment.

      One of

      • LineInterpolationType::geodesic
      • LineInterpolationType::rhumb
      • LineInterpolationType::linear
      Returns:
      the interpolation type of the line segment.