AxisAlingenedBB
A axis alingened bounding box
new AxisAlignedBB(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
new AxisAlignedBB(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)Creates a new AxisAlignedBB object with specified minimum and maximum coordinates. This constructor initializes an axis-aligned bounding box with the provided coordinates.
getMin(): Vec3
getMin(): Vec3Returns the minimum point of the bounding box as a Vec3 object.
getMax(): Vec3
getMax(): Vec3Returns the maximum point of the bounding box as a Vec3 object.
getMinX(): double
getMinX(): doubleRetrieves the minimum X-coordinate of the bounding box.
getMinY(): double
getMinY(): doubleRetrieves the minimum Y-coordinate of the bounding box.
getMinZ(): double
getMinZ(): doubleRetrieves the minimum Z-coordinate of the bounding box.
getMaxX(): double
getMaxX(): doubleRetrieves the maximum X-coordinate of the bounding box.
getMaxY(): double
getMaxY(): doubleRetrieves the maximum Y-coordinate of the bounding box.
getMaxZ(): double
getMaxZ(): doubleRetrieves the maximum Z-coordinate of the bounding box.
getAverageEdgeLength(): double
getAverageEdgeLength(): doubleReturns the average length of the edges of the bounding box.
expand(double x, double y, double z): AxisAlignedBB
expand(double x, double y, double z): AxisAlignedBBExpands the bounding box in the specified direction by the given amounts. Returns a new AxisAlignedBB representing the expanded bounding box.
intersectsWith(AxisAlignedBB other): boolean
intersectsWith(AxisAlignedBB other): booleanDetermines if this bounding box intersects with another specified AxisAlignedBB. Returns true if they intersect, false otherwise.
Checks if a vector represented by Vec3Wrapper is inside the bounding box. Returns true if the vector is inside, false otherwise.
Last updated