commonMain.ru.casperix.math.axis_aligned.Box.kt Maven / Gradle / Ivy
package ru.casperix.math.axis_aligned
/*
* Axis aligned box
*/
interface Box {
val min: Vertex
val max: Vertex
val center: Vertex
val dimension: Vertex
val volume: Type
fun isInside(point: Vertex): Boolean
fun isOutside(point: Vertex): Boolean {
return !isInside(point)
}
}