Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelOBB Class Reference

Oriented bounding box for collision testing. More...

#include <gelCollision.h>

List of all members.

Public Member Functions

 GelOBB ()
 Default constructor.
 GelOBB (Gel2dVec _pos, Gel2dVec _extent)
 Convenience constructor.

Public Attributes

Gel2dVec pos
Gel2dVec extent

Detailed Description

Oriented bounding box for collision testing.


Constructor & Destructor Documentation

gel::GelOBB::GelOBB ( ) [inline]

Default constructor.

Sets the box's position to (0, 0), and its extent to (1, 1).

gel::GelOBB::GelOBB ( Gel2dVec  _pos,
Gel2dVec  _extent 
) [inline]

Convenience constructor.

Parameters:
_pos: The box's position.
_extent: The box's horizontal and vertical extent from its center.

Member Data Documentation


The documentation for this class was generated from the following file: