java.lang.Object
net.buildtheearth.terracore.worldgen.dataset.geojson.geometry.LineString
All Implemented Interfaces:
GeoJsonObject, Geometry

public final class LineString extends Object implements Geometry
  • Field Details

    • points

      protected final Point[] points
  • Constructor Details

    • LineString

      public LineString(@NonNull @NonNull Point[] points)
  • Method Details

    • isLinearRing

      public boolean isLinearRing()
    • project

      public LineString project(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.ProjectionFunction projection) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      Specified by:
      project in interface Geometry
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
    • bounds

      public net.buildtheearth.terracore.geo.bvh.Bounds2d bounds()
      Specified by:
      bounds in interface Geometry
    • points

      public Point[] points()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object