Angel 3.2
A 2D Game Prototyping Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BoundingBox Struct Reference

Public Member Functions

 BoundingBox (const Vector2 &min, const Vector2 &max)
Vector2 Centroid () const
Vector2 HalfLength () const
void GetCorners (Vector2 corners[]) const
bool Intersects (const BoundingBox &box) const
bool Intersects (const Ray2 &ray, float &distanceAlongRay) const
bool Intersects (const Vector2 &point, float radius) const
ContainmentType Contains (const BoundingBox &box) const
bool Contains (const Vector2 &point) const
void RenderOutline () const
void RenderBox () const

Static Public Member Functions

static BoundingBox CreateMerged (const BoundingBox &original, const BoundingBox &additional)
static BoundingBox CreateFromPoints (Vector2 points[], int count)

Public Attributes

Vector2 Min
Vector2 Max

Detailed Description

Definition at line 43 of file BoundingShapes.h.

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