Public Member Functions | Public Attributes | List of all members
b2AABB Struct Reference

An axis aligned bounding box. More...

#include <b2Collision.h>

Public Member Functions

void Combine (const b2AABB &aabb)
 Combine an AABB into this one. More...
 
void Combine (const b2AABB &aabb1, const b2AABB &aabb2)
 Combine two AABBs into this one. More...
 
bool Contains (const b2AABB &aabb) const
 Does this aabb contain the provided AABB. More...
 
b2Vec2 GetCenter () const
 Get the center of the AABB. More...
 
b2Vec2 GetExtents () const
 Get the extents of the AABB (half-widths). More...
 
float32 GetPerimeter () const
 Get the perimeter length. More...
 
bool IsValid () const
 Verify that the bounds are sorted. More...
 
bool RayCast (b2RayCastOutput *output, const b2RayCastInput &input) const
 

Public Attributes

b2Vec2 lowerBound
 the lower vertex More...
 
b2Vec2 upperBound
 the upper vertex More...
 

Detailed Description

An axis aligned bounding box.

Definition at line 162 of file b2Collision.h.

Member Function Documentation

void b2AABB::Combine ( const b2AABB aabb)
inline

Combine an AABB into this one.

Definition at line 188 of file b2Collision.h.

void b2AABB::Combine ( const b2AABB aabb1,
const b2AABB aabb2 
)
inline

Combine two AABBs into this one.

Definition at line 195 of file b2Collision.h.

bool b2AABB::Contains ( const b2AABB aabb) const
inline

Does this aabb contain the provided AABB.

Definition at line 202 of file b2Collision.h.

b2Vec2 b2AABB::GetCenter ( ) const
inline

Get the center of the AABB.

Definition at line 168 of file b2Collision.h.

b2Vec2 b2AABB::GetExtents ( ) const
inline

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

Definition at line 174 of file b2Collision.h.

float32 b2AABB::GetPerimeter ( ) const
inline

Get the perimeter length.

Definition at line 180 of file b2Collision.h.

bool b2AABB::IsValid ( ) const
inline

Verify that the bounds are sorted.

Definition at line 254 of file b2Collision.h.

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

Definition at line 133 of file b2Collision.cpp.

Member Data Documentation

b2Vec2 b2AABB::lowerBound

the lower vertex

Definition at line 214 of file b2Collision.h.

b2Vec2 b2AABB::upperBound

the upper vertex

Definition at line 215 of file b2Collision.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:40