Class DistancePolygon
java.lang.Object
net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
net.buildtheearth.terraminusminus.dataset.vector.geometry.polygon.AbstractPolygon
net.buildtheearth.terraminusminus.dataset.vector.geometry.polygon.DistancePolygon
- All Implemented Interfaces:
Comparable<VectorGeometry>,VectorGeometry,Bounds2d
-
Field Summary
FieldsFields inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.polygon.AbstractPolygon
maxX, maxZ, minX, minZ, segmentsFields inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
draw, id, layer -
Constructor Summary
ConstructorsConstructorDescriptionDistancePolygon(@NonNull String id, double layer, @NonNull DrawFunction draw, @NonNull MultiPolygon polygons, int maxDist) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull Bounds2d bounds) Modifies the givenCachedChunkData.Builderfor the given chunkMethods inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.polygon.AbstractPolygon
getIntersectionPoints, maxX, maxZ, minX, minZ, segmentsMethods inherited from class net.buildtheearth.terraminusminus.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.terraminusminus.util.bvh.Bounds2d
contains, expand, intersects, toCornerBB, toTiles, union, validateMethods inherited from interface net.buildtheearth.terraminusminus.dataset.vector.geometry.VectorGeometry
compareTo
-
Field Details
-
maxDist
protected final int maxDist
-
-
Constructor Details
-
DistancePolygon
public DistancePolygon(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw, @NonNull @NonNull MultiPolygon polygons, int maxDist)
-
-
Method Details
-
apply
public void apply(@NonNull CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull @NonNull Bounds2d bounds) Description copied from interface:VectorGeometryModifies the givenCachedChunkData.Builderfor the given chunk- Parameters:
builder- theCachedChunkData.BuilderchunkX- the chunk's X coordinatechunkZ- the chunk's Z coordinatebounds- the chunk's bounding box
-