public class ExtractMidpoint extends Object
Point3i
representing the mid-point of an ObjectWithProperties
.
The midpoint is taken, in order of preference:
ObjectMask
.
Modifier and Type | Method and Description |
---|---|
static Point3i |
midpoint(ObjectWithProperties object,
boolean suppressZ)
Calculates the midpoint of
object . |
public static Point3i midpoint(ObjectWithProperties object, boolean suppressZ)
object
.object
- the object to calculate a midpoint for, possibly containing a property with key
.suppressZ
- when true, the z-dimension is ignored, and the midpoint will always have
z==0
. when false, it is included in the calculation.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.