# b2AABB Struct Reference

An axis aligned bounding box. More...

`#include <b2Collision.h>`

List of all members.

## Public Member Functions
bool | IsValid () const
| Verify that the bounds are sorted.
b2Vec2 | GetCenter () const
| Get the center of the AABB.
b2Vec2 | GetExtents () const
| Get the extents of the AABB (half-widths).
void | Combine (const b2AABB &aabb1, const b2AABB &aabb2)
| Combine two AABBs into this one.
bool | Contains (const b2AABB &aabb) const
| Does this aabb contain the provided AABB.
bool | RayCast (b2RayCastOutput *output, const b2RayCastInput &input) const
## Public Attributes
b2Vec2 | lowerBound
| the lower vertex
b2Vec2 | upperBound
| the upper vertex

## Detailed Description

An axis aligned bounding box.

## Member Function Documentation

void b2AABB::Combine | ( | const b2AABB & | aabb1,
|  | const b2AABB & | aabb2 |
| ) |  |  | `[inline]`

Combine two AABBs into this one.

bool b2AABB::Contains | ( | const b2AABB & | aabb | ) | const`[inline]`

Does this aabb contain the provided AABB.

b2Vec2 b2AABB::GetCenter | ( |  | ) | const`[inline]`

Get the center of the AABB.

b2Vec2 b2AABB::GetExtents | ( |  | ) | const`[inline]`

Get the extents of the AABB (half-widths).

bool b2AABB::IsValid | ( |  | ) | const`[inline]`

Verify that the bounds are sorted.

bool b2AABB::RayCast | ( | b2RayCastOutput * | output,
|  | const b2RayCastInput & | input |
| ) |  |  | const

## Member Data Documentation

b2Vec2 b2AABB::lowerBound

the lower vertex

b2Vec2 b2AABB::upperBound

the upper vertex

The documentation for this struct was generated from the following files:

- Box2D/Box2D/Collision/b2Collision.h
- Box2D/Box2D/Collision/b2Collision.cpp