Class BoundingBox3D
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.BoundingBox3D
- All Implemented Interfaces:
Serializable, BoundingBox<Point3D>
Axis-aligned bounding box in 3D.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if a point is within this bounding box.static BoundingBox3DfromPoints(List<Point3D> points) getDepth()getMax()Returns the maximum corner of the bounding box.getMin()Returns the minimum corner of the bounding box.getWidth()Expands this bounding box to include a point.booleanintersects(BoundingBox<Point3D> other) Checks if this box intersects with another.merge(BoundingBox<Point3D> other) Merges this bounding box with another.toString()
-
Constructor Details
-
BoundingBox3D
-
-
Method Details
-
fromPoints
-
getMin
Description copied from interface:BoundingBoxReturns the minimum corner of the bounding box.- Specified by:
getMinin interfaceBoundingBox<Point3D>- Returns:
- the min point
-
getMax
Description copied from interface:BoundingBoxReturns the maximum corner of the bounding box.- Specified by:
getMaxin interfaceBoundingBox<Point3D>- Returns:
- the max point
-
getWidth
-
getHeight
-
getDepth
-
getCenter
-
getVolume
-
contains
Description copied from interface:BoundingBoxChecks if a point is within this bounding box.- Specified by:
containsin interfaceBoundingBox<Point3D>- Parameters:
point- the point to check- Returns:
- true if contained
-
intersects
Description copied from interface:BoundingBoxChecks if this box intersects with another.- Specified by:
intersectsin interfaceBoundingBox<Point3D>- Parameters:
other- the other bounding box- Returns:
- true if boxes overlap
-
include
Description copied from interface:BoundingBoxExpands this bounding box to include a point.- Specified by:
includein interfaceBoundingBox<Point3D>- Parameters:
point- the point to include- Returns:
- expanded bounding box
-
merge
Description copied from interface:BoundingBoxMerges this bounding box with another.- Specified by:
mergein interfaceBoundingBox<Point3D>- Parameters:
other- the other box- Returns:
- merged bounding box
-
toString
-