All Implemented Interfaces:
Comparable<VectorGeometry>, net.buildtheearth.terracore.geo.bvh.Bounds2d, VectorGeometry

public final class WideLine extends AbstractLine
  • 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: VectorGeometry
      Modifies the given CachedChunkData.Builder for the given chunk
      Parameters:
      builder - the CachedChunkData.Builder
      chunkX - the chunk's X coordinate
      chunkZ - the chunk's Z coordinate
      bounds - the chunk's bounding box
    • minX

      public double minX()
      Specified by:
      minX in interface net.buildtheearth.terracore.geo.bvh.Bounds2d
      Overrides:
      minX in class AbstractLine
    • maxX

      public double maxX()
      Specified by:
      maxX in interface net.buildtheearth.terracore.geo.bvh.Bounds2d
      Overrides:
      maxX in class AbstractLine
    • minZ

      public double minZ()
      Specified by:
      minZ in interface net.buildtheearth.terracore.geo.bvh.Bounds2d
      Overrides:
      minZ in class AbstractLine
    • maxZ

      public double maxZ()
      Specified by:
      maxZ in interface net.buildtheearth.terracore.geo.bvh.Bounds2d
      Overrides:
      maxZ in class AbstractLine