Gel2D - The free/open source game creation suite

Static Public Member Functions
gel::GelCollision Class Reference

2D collision detection algorithms. More...

#include <gelCollision.h>

List of all members.

Static Public Member Functions

static bool collides (const GelCircle &cir1, const GelCircle &cir2)
 Tests for a collision between two circles.
static bool collides (const GelCircle &cir, const GelAABB &box)
 Tests for a collision between a circle and an axis-aligned bounding box.
static bool collides (const GelCircle &cir, const GelOBB &box)
static bool collides (const GelCircle &cir, const GelRay &ray)
static bool collides (const GelCircle &cir, const GelCdtPoint &point)
 Tests for a collision between a circle and a point.
static bool collides (const GelAABB &box1, const GelAABB &box2)
 Tests for a collision between two axis-aligned bounding boxes.
static bool collides (const GelAABB &box, const GelCircle &cir)
 Tests for a collision between an axis-aligned bounding box and a circle.
static bool collides (const GelAABB &box1, const GelOBB &box2)
static bool collides (const GelAABB &box, const GelRay &ray)
static bool collides (const GelAABB &box, const GelCdtPoint &point)
 Tests for a collision between an axis-aligned bounding box and a point.
static bool collides (const GelOBB &box1, const GelOBB &box2)
static bool collides (const GelOBB &box, const GelCircle &cir)
static bool collides (const GelOBB &box, const GelRay &ray)
static bool collides (const GelOBB &box, const GelCdtPoint &point)
static bool collides (const GelRay &ray1, const GelRay &ray2)
static bool collides (const GelRay &ray, const GelCircle &cir)
static bool collides (const GelRay &ray, const GelOBB &box)
static bool collides (const GelRay &ray, const GelCdtPoint &point)
static bool collides (const GelCdtPoint &point1, const GelCdtPoint &point2)
 Tests for a collision between two points.
static bool collides (const GelCdtPoint &point, const GelCircle &cir)
 Tests for a collision between a point and a circle.
static bool collides (const GelCdtPoint &point, const GelAABB &box)
 Tests for a collision between a point and an axis-aligned bounding box.
static bool collides (const GelCdtPoint &point, const GelOBB &box)
static bool collides (const GelCdtPoint &point, const GelRay &ray)

Detailed Description

2D collision detection algorithms.


Member Function Documentation

static bool gel::GelCollision::collides ( const GelCircle &  cir1,
const GelCircle &  cir2 
) [static]

Tests for a collision between two circles.

Parameters:
cir1: A bounding circle.
cir2: Another bounding circle.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelCircle &  cir,
const GelAABB &  box 
) [static]

Tests for a collision between a circle and an axis-aligned bounding box.

Parameters:
cir: A bounding circle.
box: An axis-aligned bounding box.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelCircle &  cir,
const GelOBB &  box 
) [static]
static bool gel::GelCollision::collides ( const GelCircle &  cir,
const GelRay &  ray 
) [static]
static bool gel::GelCollision::collides ( const GelCircle &  cir,
const GelCdtPoint &  point 
) [static]

Tests for a collision between a circle and a point.

Parameters:
cir: A bounding circle.
point: A point.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelAABB &  box1,
const GelAABB &  box2 
) [static]

Tests for a collision between two axis-aligned bounding boxes.

Parameters:
box1: An axis-aligned bounding box.
box2: Another axis-aligned bounding box.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelAABB &  box,
const GelCircle &  cir 
) [static]

Tests for a collision between an axis-aligned bounding box and a circle.

This is a convenience function.

See also:
collides( const GelCircle &cir, const GelAABB &box )
static bool gel::GelCollision::collides ( const GelAABB &  box1,
const GelOBB &  box2 
) [static]
static bool gel::GelCollision::collides ( const GelAABB &  box,
const GelRay &  ray 
) [static]
static bool gel::GelCollision::collides ( const GelAABB &  box,
const GelCdtPoint &  point 
) [static]

Tests for a collision between an axis-aligned bounding box and a point.

Parameters:
box: An axis-aligned bounding box.
point: A point.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelOBB &  box1,
const GelOBB &  box2 
) [static]
static bool gel::GelCollision::collides ( const GelOBB &  box,
const GelCircle &  cir 
) [static]
static bool gel::GelCollision::collides ( const GelOBB &  box,
const GelRay &  ray 
) [static]
static bool gel::GelCollision::collides ( const GelOBB &  box,
const GelCdtPoint &  point 
) [static]
static bool gel::GelCollision::collides ( const GelRay &  ray1,
const GelRay &  ray2 
) [static]
static bool gel::GelCollision::collides ( const GelRay &  ray,
const GelCircle &  cir 
) [static]
static bool gel::GelCollision::collides ( const GelRay &  ray,
const GelOBB &  box 
) [static]
static bool gel::GelCollision::collides ( const GelRay &  ray,
const GelCdtPoint &  point 
) [static]
static bool gel::GelCollision::collides ( const GelCdtPoint &  point1,
const GelCdtPoint &  point2 
) [static]

Tests for a collision between two points.

Parameters:
point1: A point.
point2: Another point.
Returns:
True if the bounds collide, else false.
static bool gel::GelCollision::collides ( const GelCdtPoint &  point,
const GelCircle &  cir 
) [static]

Tests for a collision between a point and a circle.

This is a convenience function.

See also:
collides( const GelCircle &cir, const GelPoint &point )
static bool gel::GelCollision::collides ( const GelCdtPoint &  point,
const GelAABB &  box 
) [static]

Tests for a collision between a point and an axis-aligned bounding box.

This is a convenience function.

See also:
collides( const GelAABB &box, const GelPoint &point )
static bool gel::GelCollision::collides ( const GelCdtPoint &  point,
const GelOBB &  box 
) [static]
static bool gel::GelCollision::collides ( const GelCdtPoint &  point,
const GelRay &  ray 
) [static]

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