java.lang.Object
net.buildtheearth.terracore.worldgen.dataset.vector.geometry.AbstractVectorGeometry
net.buildtheearth.terracore.worldgen.dataset.vector.geometry.polygon.AbstractPolygon
All Implemented Interfaces:
Comparable<VectorGeometry>, net.buildtheearth.terracore.geo.bvh.Bounds2d, VectorGeometry
Direct Known Subclasses:
DistancePolygon, FillPolygon

public abstract class AbstractPolygon extends AbstractVectorGeometry
  • Field Details

    • segments

      protected final net.buildtheearth.terracore.geo.interval.IntervalTree<Segment> segments
    • minX

      protected final double minX
    • maxX

      protected final double maxX
    • minZ

      protected final double minZ
    • maxZ

      protected final double maxZ
  • Constructor Details

    • AbstractPolygon

      public AbstractPolygon(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw, @NonNull @NonNull MultiPolygon polygons)
  • Method Details

    • getIntersectionPoints

      protected double[] getIntersectionPoints(int pos)
    • segments

      public net.buildtheearth.terracore.geo.interval.IntervalTree<Segment> segments()
    • minX

      public double minX()
    • maxX

      public double maxX()
    • minZ

      public double minZ()
    • maxZ

      public double maxZ()