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

public final class MultiLineString extends Object implements Geometry, Iterable<LineString>
  • Field Details

    • lines

      @NonNull protected final @NonNull LineString[] lines
  • Constructor Details

    • MultiLineString

      public MultiLineString(@NonNull @NonNull LineString[] lines)
  • Method Details

    • iterator

      public Iterator<LineString> iterator()
      Specified by:
      iterator in interface Iterable<LineString>
    • project

      public MultiLineString 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
    • lines

      @NonNull public @NonNull LineString[] lines()
    • 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