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

public final class MultiPolygon extends Object implements Geometry, Iterable<Polygon>
  • Field Details

    • polygons

      @NonNull protected final @NonNull Polygon[] polygons
  • Constructor Details

    • MultiPolygon

      public MultiPolygon(@NonNull @NonNull Polygon[] polygons)
  • Method Details

    • iterator

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

      public MultiPolygon 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
    • polygons

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