Interface VectorGeometry
- All Superinterfaces:
net.buildtheearth.terracore.geo.bvh.Bounds2d,Comparable<VectorGeometry>
- All Known Implementing Classes:
AbstractLine,AbstractPolygon,AbstractVectorGeometry,DistancePolygon,FillPolygon,NarrowLine,SharpLine,WideLine
public interface VectorGeometry
extends Comparable<VectorGeometry>, net.buildtheearth.terracore.geo.bvh.Bounds2d
A generate-able OpenStreetMap element.
-
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 chunkdefault intid()doublelayer()Methods inherited from interface net.buildtheearth.terracore.geo.bvh.Bounds2d
contains, expand, intersects, maxX, maxZ, minX, minZ, toCornerBB, toTiles, union, validate
-
Method Details
-
apply
void apply(@NonNull CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull @NonNull net.buildtheearth.terracore.geo.bvh.Bounds2d bounds) Modifies 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
-
id
String id()- Returns:
- this element's id
-
layer
double layer()- Returns:
- the map layer that this element is on
-
compareTo
- Specified by:
compareToin interfaceComparable<VectorGeometry>
-