public class BoundingBoxDistance extends Object
Modifier and Type | Method and Description |
---|---|
static double |
distance(BoundingBox box1,
BoundingBox box2,
boolean includeZ)
Calculates the distance between two
BoundingBox es. |
public static double distance(BoundingBox box1, BoundingBox box2, boolean includeZ)
BoundingBox
es.
This is defined as the minimum Euclidean distance from one box's edge to the other's.
box1
- the first box.box2
- the second box.includeZ
- if true, the Z-axis is included in the distance calculation, or otherwise
ignored.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.