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

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

    • geometries

      @NonNull protected final @NonNull Geometry[] geometries
  • Constructor Details

    • GeometryCollection

      public GeometryCollection(@NonNull @NonNull Geometry[] geometries)
  • Method Details

    • iterator

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

      public Geometry 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
    • geometries

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