Class Line

All Implemented Interfaces:
AutoCloseable

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

    • finalize Link icon

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

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

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

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

      @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.