Class BoundingBoxFromPoints

Object
BoundingBoxFromPoints

public class BoundingBoxFromPoints extends Object
Creates a bounding-box from one or more points.
Author:
Owen Feehan
  • Method Details

    • fromStream

      public static BoundingBox fromStream(Stream<Point3i> points) throws OperationFailedException
      Create from a stream of Point3is.
      Parameters:
      points - the collection.
      Returns:
      a bounding-box minimally spanning all points.
      Throws:
      OperationFailedException - if there are zero points.
    • fromTwoPoints

      public static BoundingBox fromTwoPoints(Point3d point1, Point3d point2)
      Creates a bounding-box for two unordered points.

      By unordered, it means that no one point must have a value higher than another.

      Parameters:
      point1 - first-point (arbitrary order).
      point2 - second-point (arbitrary order).
      Returns:
      a bounding-box minimally spanning the two points.