# PhysicsAABB

> Represents a 2D axis-aligned bounding-box.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public struct PhysicsAABB
```

## Constructors

| Constructor                                                                                                                               | Description                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [PhysicsAABB(UnityEngine.Vector2,UnityEngine.Vector2)](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/ctor.md) | Create an axis-aligned bounding-box with the specified bounds. |

## Properties

| Property                                                                                              | Description                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [center](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/center.md)         | Get the center of the AABB.                                                                                                                                                                                                                                                                                        |
| [extents](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/extents.md)       | Get the extents (half size) of the AABB.                                                                                                                                                                                                                                                                           |
| [isValid](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/isvalid.md)       | Check if the AABB is valid. To be valid, [PhysicsAABB.upperBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/upperbound.md) should be equal to or above [PhysicsAABB.lowerBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/lowerbound.md).          |
| [lowerBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/lowerbound.md) | The lower-left bounding vertex. This should be equal to or lower than [PhysicsAABB.upperBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/upperbound.md).                                                                                                                           |
| [normalized](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/normalized.md) | Get a new normalized copy of the AABB ensuring that [PhysicsAABB.lowerBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/lowerbound.md) is lower than or equal to [PhysicsAABB.upperBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/upperbound.md). |
| [perimeter](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/perimeter.md)   | Get the surface area (perimeter length) of the AABB.                                                                                                                                                                                                                                                               |
| [upperBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/upperbound.md) | The upper-right bounding vertex. This should be equal to or above [PhysicsAABB.lowerBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/lowerbound.md).                                                                                                                               |

## Methods

| Method                                                                                                    | Description                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CastRay](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/castray.md)           | Perform a raycast against this AABB. Nothing will be detected if the ray starts inside the AABB. To check if the ray starts inside the AABB use [PhysicsAABB.OverlapPoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/overlappoint.md).                          |
| [Contains](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/contains.md)         | Checks if the AABB contains (completely encapsulates) the specified AABB.                                                                                                                                                                                                                       |
| [Normalize](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/normalize.md)       | Normalize the AABB ensuring that [PhysicsAABB.lowerBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/lowerbound.md) is lower than or equal to [PhysicsAABB.upperBound](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/upperbound.md). |
| [Overlap](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/overlap.md)           | Check if the specified AABB overlaps this AABB.                                                                                                                                                                                                                                                 |
| [OverlapPoint](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/overlappoint.md) | Check if the specified point overlaps this AABB.                                                                                                                                                                                                                                                |
| [Union](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsaabb/union.md)               | Create a union of the specified AABB and this AABB where resulting AABB completely encapsulates both AABB.                                                                                                                                                                                      |
