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

public final class Polygon extends Object implements Geometry
  • Field Details

    • outerRing

      protected final LineString outerRing
    • innerRings

      protected final LineString[] innerRings
  • Constructor Details

    • Polygon

      public Polygon(@NonNull @NonNull LineString outerRing, @NonNull @NonNull LineString[] innerRings)
  • Method Details

    • project

      public Polygon 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
    • outerRing

      public LineString outerRing()
    • innerRings

      public LineString[] innerRings()
    • 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