Skip to content
Henryk Wollik edited this page Jul 28, 2014 · 1 revision

Class: AABB

AABB

new AABB()

Representation of an axis aligned bounding box,

Source:

Members

center :Vec3

The center of the box.

Type:
Source:

points :Array

The 8 defining points of the box.

Type:
  • Array
Source:

size :Vec3

The size of the box. (max - min)

Type:
Source:

<inner> max :Vec3

The maximal point

Type:
Source:

<inner> min :Vec3

The minimal point.

Type:
Source:

Methods

include(aabb) → {AABB}

Adjusts the box size to include anoterh box.

Parameters:
Name Type Description
aabb AABB

Another box

Source:
Returns:
Type
AABB

set(aabb) → {AABB}

Sets box from another box

Parameters:
Name Type Description
aabb AABB

Another box

Source:
Returns:
Type
AABB

setFromPoints(points) → {AABB}

Returns an axis aligned bounding box from a set of points.

Parameters:
Name Type Description
points Vec3[]

N points

Source:
Returns:
Type
AABB

setFromPointsf(points) → {AABB}

Returns an axis aligned bounding box from a set of points.

Parameters:
Name Type Description
points Number[]

N points

Source:
Returns:
Type
AABB

Generated with wicked.