API Docs for: 0.5.5
Show:

kick.math.Aabb Class

Defined in: kick/math/Aabb.js:8
Module: kick.math

Axis-Aligned Bounding Box. A rectangle or box with the restriction that it's sides or faces are parallel to the axes of the system. The aabb is represented using an array: [min_x,min_y,min_z,max_x,max_y,max_z]

Item Index

Methods

Methods

addPoint

(
  • out
  • aabb
  • a
)
kick.math.Aabb static

Parameters:

Returns:

kick.math.Aabb:

aabb (same object as input)

addPointIndexed

(
  • out
  • aabb
  • a
  • offset
)
kick.math.Aabb static

Parameters:

Returns:

kick.math.Aabb:

aabb (same object as input)

center

(
  • out
  • aabb
)
kick.math.Vec3 static

Parameters:

Returns:

copy

(
  • out
  • aabb
)
kick.math.Aabb static

Copies the values of one aabb to another

Parameters:

Returns:

create

(
  • vec3Min
  • vec3Max
)
kick.math.Aabb static

Default value is min=MAX, max=MIN (meaning that it has a negative size)

Parameters:

  • vec3Min Array_Number | kick.math.Aabb

    Optional, vec3Min containing values to initialize minimum values with Default. Or an aabb.

  • vec3Max Array_Number

    Optional, vec3Max containing values to initialize maximum values with

Returns:

kick.math.Aabb:

New aabb

diagonal

(
  • out
  • aabb
)
kick.math.Vec3 static

Diagonal from min to max

Parameters:

Returns:

halfVector

(
  • out
  • aabb
)
kick.math.Vec3 static

Parameters:

Returns:

merge

(
  • out
  • aabb
  • aabb2
)
kick.math.Aabb static

Parameters:

Returns:

str

(
  • aabb
)
static

Parameters:

transform

(
  • out
  • aabbIn
  • mat
)
kick.math.Aabb static

Transforms the eight points of the Axis-Aligned Bounding Box into a new AABB

Parameters:

Returns: