Class AbstractPolygon
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleprotected final doubleprotected final doubleprotected final net.buildtheearth.terracore.geo.interval.IntervalTree<Segment> Fields inherited from class net.buildtheearth.terracore.worldgen.dataset.vector.geometry.AbstractVectorGeometry
draw, id, layer -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPolygon(@NonNull String id, double layer, @NonNull DrawFunction draw, @NonNull MultiPolygon polygons) -
Method Summary
Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.vector.geometry.AbstractVectorGeometry
canEqual, convertToSegments, draw, equals, hashCode, id, layerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.buildtheearth.terracore.geo.bvh.Bounds2d
contains, expand, intersects, toCornerBB, toTiles, union, validateMethods inherited from interface net.buildtheearth.terracore.worldgen.dataset.vector.geometry.VectorGeometry
apply, compareTo
-
Field Details
-
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
-
minX
public double minX() -
maxX
public double maxX() -
minZ
public double minZ() -
maxZ
public double maxZ()
-