distanceToSqr

fun AABB.distanceToSqr(x: Double, y: Double, z: Double): Double

Squared distance from this box to a point without allocating a temporary Vec3.

See also


fun VoxelShape.distanceToSqr(position: Vec3): Double