Skip to main content

aabb

An Axis Aligned Bounding Box, or AABB for short.

They take the form of a dictionary with the following keys:

  • low vector: Min. bounds vector
  • high vector: Max. bounds vector

The following functions are in the aabb module.

aabb​

aabb() 

Compute an axis aligned bounding box (aabb) for a list of vectors</Type>.

List of vector</Type>s.

init:

​

Initial aabb

mid​

mid() 

Get the mid-point of an AABB as vector.

bounds:

​

The AABB to get the mid-point of.

corner-points​

corner-points() 

Get four corner points of the AABB as vectors.

bounds:

​

The AABB

fron:

​

Return the corner points for the high z component

size​

size() 

Get the size of an aabb as vector. This is a vector from the aabb’s low to high.

bounds:

​

The aabb to get the size of.

padded​

padded() 

Pad AABB with padding from dictionary with keys top, left, right and bottom.

bounds:

​

The AABB to pad.

padding:

​

Padding values