Class WideLine
java.lang.Object
net.buildtheearth.terracore.worldgen.dataset.vector.geometry.AbstractVectorGeometry
net.buildtheearth.terracore.worldgen.dataset.vector.geometry.line.AbstractLine
net.buildtheearth.terracore.worldgen.dataset.vector.geometry.line.WideLine
- All Implemented Interfaces:
Comparable<VectorGeometry>,net.buildtheearth.terracore.geo.bvh.Bounds2d,VectorGeometry
-
Field Summary
FieldsFields inherited from class net.buildtheearth.terracore.worldgen.dataset.vector.geometry.line.AbstractLine
segmentsFields inherited from class net.buildtheearth.terracore.worldgen.dataset.vector.geometry.AbstractVectorGeometry
draw, id, layer -
Constructor Summary
ConstructorsConstructorDescriptionWideLine(@NonNull String id, double layer, @NonNull DrawFunction draw, @NonNull MultiLineString lines, double radius) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull net.buildtheearth.terracore.geo.bvh.Bounds2d bounds) Modifies the givenCachedChunkData.Builderfor the given chunkdoublemaxX()doublemaxZ()doubleminX()doubleminZ()Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.vector.geometry.line.AbstractLine
segmentsMethods 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
compareTo
-
Field Details
-
radius
protected final double radius
-
-
Constructor Details
-
WideLine
public WideLine(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw, @NonNull @NonNull MultiLineString lines, double radius)
-
-
Method Details
-
apply
public void apply(@NonNull CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull @NonNull net.buildtheearth.terracore.geo.bvh.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
-
minX
public double minX()- Specified by:
minXin interfacenet.buildtheearth.terracore.geo.bvh.Bounds2d- Overrides:
minXin classAbstractLine
-
maxX
public double maxX()- Specified by:
maxXin interfacenet.buildtheearth.terracore.geo.bvh.Bounds2d- Overrides:
maxXin classAbstractLine
-
minZ
public double minZ()- Specified by:
minZin interfacenet.buildtheearth.terracore.geo.bvh.Bounds2d- Overrides:
minZin classAbstractLine
-
maxZ
public double maxZ()- Specified by:
maxZin interfacenet.buildtheearth.terracore.geo.bvh.Bounds2d- Overrides:
maxZin classAbstractLine
-