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
Properties
| Name | Description |
|---|---|
| Center | Gets the center. |
| Extents | Gets the extents. |
|
Is |
Gets a value indicating whether this aabb is valid. |
|
Surface |
Gets the surface area. |
Methods
| Name | Description |
|---|---|
|
Closest |
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. |