Axis-Aligned Bounding Box.
Rect3 provides an 3D Axis-Aligned Bounding Box. It consists of a position, a size, and several utility functions. It is typically used for simple (fast) overlap tests.
Optional constructor, accepts position and size.
Return true if this [code]Rect3[/code] completely encloses another one.
Return this [code]Rect3[/code] expanded to include a given point.
Get the area of the [code]Rect3[/code].
Get the position of the 8 endpoints of the [code]Rect3[/code] in space.
Return the normalized longest axis of the [code]Rect3[/code].
Return the index of the longest axis of the [code]Rect3[/code] (according to [Vector3]::AXIS* enum).
Return the scalar length of the longest axis of the [code]Rect3[/code].
Return the normalized shortest axis of the [code]Rect3[/code].
Return the index of the shortest axis of the [code]Rect3[/code] (according to [Vector3]::AXIS* enum).
Return the scalar length of the shortest axis of the [code]Rect3[/code].
Return the support point in a given direction. This is useful for collision detection algorithms.
Return a copy of the [code]Rect3[/code] grown a given amount of units towards all the sides.
Return true if the [code]Rect3[/code] is flat or empty.
Return true if the [code]Rect3[/code] is empty.
Return true if the [code]Rect3[/code] contains a point.
Return the intersection between two [code]Rect3[/code]. An empty Rect3 (size 0,0,0) is returned on failure.
Return true if the [code]Rect3[/code] overlaps with another.
Return true if the [code]Rect3[/code] is at both sides of a plane.
Return true if the [code]Rect3[/code] intersects the line segment between from and to
Combine this [code]Rect3[/code] with another, a larger one is returned that contains both.
Ending corner.
Size from position to end.