Skip to content

class_aabb

reduz edited this page Feb 23, 2014 · 11 revisions

AABB

Brief Description

Axis-Aligned Bounding Box.

Member Functions

Member Variables

Description

AABB provides an 3D Axis-Aligned Bounding Box. It consists of a position and a size, and several utility functions. It is typically used for simple (fast) overlap tests.

Member Function Description

  • Vector3 ** get_support ** ( Vector3 dir ) \ Return the support point in a given direction. This is useful for collision detection algorithms.
  • AABB ** grow ** ( real by ) \ Return a copy of the AABB grown a given a mount of units towards all the sides.
  • AABB ** intersection ** ( AABB with ) \ Return the intersection between two aabbs. An empty AABB (size 0,0,0) is returned on failure.
  • AABB ** merge ** ( AABB with ) \ Combine this aabb with another one, a larger one is returned that contains both.
  • void ** AABB ** ( Vector3 pos, Vector3 size ) \ Optional constructor, accepts position and size.

Clone this wiki locally