Box

@Serializable
data class Box(val corner: Vector3, val width: Double, val height: Double, val depth: Double) : LinearType<Box> (source)

A 3D Box defined by an anchor point (corner), width, height and depth.

Constructors

Link copied to clipboard
constructor(corner: Vector3, width: Double, height: Double, depth: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun contains(point: Vector3): Boolean

Return true if given point is inside the Box.

Link copied to clipboard
open operator override fun div(scale: Double): Box
Link copied to clipboard
fun intersects(other: Box): Boolean

Return true if the volumes of two boxes intersect.

Link copied to clipboard
open operator override fun minus(right: Box): Box
Link copied to clipboard
fun offsetSides(offset: Double, offsetY: Double = offset, offsetZ: Double = offset): Box

Return a copy of the box with sides offset

Link copied to clipboard
open operator override fun plus(right: Box): Box
Link copied to clipboard

Convert to box-coordinates u, v, w to

Link copied to clipboard
Link copied to clipboard
open operator override fun times(scale: Double): Box
Link copied to clipboard
fun toInt(): IntBox

Convert to IntBox

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val xRange: <Error class: unknown class>
Link copied to clipboard
val yRange: <Error class: unknown class>
Link copied to clipboard
val zRange: <Error class: unknown class>