BoundingBox

data class BoundingBox(val minX: Int, val minY: Int, val minZ: Int, val maxX: Int, val maxY: Int, val maxZ: Int)(source)

Axis-aligned bounding box with normalized min/max corners.

Constructors

Link copied to clipboard
constructor(minX: Int, minY: Int, minZ: Int, maxX: Int, maxY: Int, maxZ: Int)

Properties

Link copied to clipboard
val maxX: Int

maximum X coordinate

Link copied to clipboard
val maxY: Int

maximum Y coordinate

Link copied to clipboard
val maxZ: Int

maximum Z coordinate

Link copied to clipboard
val minX: Int

minimum X coordinate

Link copied to clipboard
val minY: Int

minimum Y coordinate

Link copied to clipboard
val minZ: Int

minimum Z coordinate

Functions

Link copied to clipboard
fun depth(): Int

Returns the depth (Z-axis span) in blocks.

Link copied to clipboard
fun height(): Int

Returns the height (Y-axis span) in blocks.

Link copied to clipboard
fun volume(): Long

Returns the total volume of this bounding box in blocks.

Link copied to clipboard
fun width(): Int

Returns the width (X-axis span) in blocks.