Struct Aabb
An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing some object.
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
[Serializable]
public struct Aabb
Fields
Name | Description |
---|---|
Empty | Create an empty, invalid AABB. |
Max | The maximum point. |
Min | The minimum point. |
Properties
Name | Description |
---|---|
Center | Gets the center. |
Extents | Gets the extents. |
IsValid | Gets a value indicating whether this aabb is valid. |
SurfaceArea | Gets the surface area. |
Methods
Name | Description |
---|---|
ClosestPoint(float3) | Returns the closest point on the bounds of the AABB to the specified position. |
Contains(float3) | Query if this aabb contains the given point. |
Contains(Aabb) | Query if this aabb contains the given aabb. |
Expand(float) | Expands the aabb by the provided distance. |
Include(float3) | Includes the given point in the aabb. |
Include(Aabb) | Includes the given aabb into this aabb. |
Intersect(Aabb) | Intersects this aabb and another one. |
Overlaps(Aabb) | Query if this aabb overlaps the given other aabb. |
Union(Aabb, Aabb) | Create a union of two aabbs. |