| CRM64Pro GDK v0.19.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::Physics::AABB

Axis-aligned bounding box using half-open bounds [min, max). More...

## Detailed Description

Axis-aligned bounding box using half-open bounds [min, max).

## Public Member Functions
| AABB ()
| Construct an empty bounding box at the origin.
| AABB (float _minX, float _minY, float _maxX, float _maxY)
| Construct a bounding box from explicit half-open bounds.

## Public Attributes
float | minX
| Inclusive lower bound on the X axis.
float | minY
| Inclusive lower bound on the Y axis.
float | maxX
| Exclusive upper bound on the X axis.
float | maxY
| Exclusive upper bound on the Y axis.

## Constructor & Destructor Documentation

## ◆ AABB()

CRM64Pro::Physics::AABB::AABB | ( | float | _minX,
|  | float | _minY,
|  | float | _maxX,
|  | float | _maxY )
| inline

Construct a bounding box from explicit half-open bounds.

Parameters

  _minX | Inclusive lower bound on the X axis.
  _minY | Inclusive lower bound on the Y axis.
  _maxX | Exclusive upper bound on the X axis.
  _maxY | Exclusive upper bound on the Y axis.

Note
  Bounds are assigned without validation.