public class BoundingBoxFromPoints extends Object
Modifier and Type | Method and Description |
---|---|
static BoundingBox |
fromStream(java.util.stream.Stream<Point3i> points)
Create from a stream of
Point3i s. |
static BoundingBox |
fromTwoPoints(Point3d point1,
Point3d point2)
Creates a bounding-box for two unordered points.
|
public static BoundingBox fromStream(java.util.stream.Stream<Point3i> points) throws OperationFailedException
Point3i
s.points
- the collection.OperationFailedException
- if there are zero points.public static BoundingBox fromTwoPoints(Point3d point1, Point3d point2)
By unordered, it means that no one point must have a value higher than another.
point1
- first-point (arbitrary order).point2
- second-point (arbitrary order).Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.