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

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

    • points

      @NonNull protected final @NonNull Point[] points
  • Constructor Details

    • MultiPoint

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

    • iterator

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

      public MultiPoint 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

      @NonNull public @NonNull 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