API Docs for: 0.6.1
Show:

AABB Class

Axis aligned bounding box class.

Constructor

AABB

(
  • [options]
)

Parameters:

  • [options] Object optional
    • [upperBound] Array optional
    • [lowerBound] Array optional

Item Index

Properties

Methods

copy

(
  • aabb
)

Copy bounds from an AABB to this AABB

Parameters:

  • aabb AABB

    Source to copy from

extend

(
  • aabb
)

Extend this AABB so that it covers the given AABB too.

Parameters:

overlaps

(
  • aabb
)
Boolean

Returns true if the given AABB overlaps this AABB.

Parameters:

Returns:

Boolean:

setFromPoints

(
  • points
  • position
  • quaternion
  • skinSize
)

Set the AABB bounds from a set of points.

Parameters:

  • points Array

    An array of Vec3's.

  • position Vec3
  • quaternion Quaternion
  • skinSize Number

Properties

lowerBound

Array

The lower bound of the bounding box.

upperBound

Array

The upper bound of the bounding box.