Class: AABB

Raphael3d. AABB

new AABB()

Axis aligned bounding box (AABB) implementation
This:
Properties:
Name Type Description
center Raphael3d.Vector3 center of AABB
size Raphael3d.Vector3 size fo AABB
diagonalLength number diagonal length of AABB
minX number minimal x coordinate
minY number minimal y coordinate
minZ number minimal z coordinate
maxX number maxmal x coordinate
maxY number maxmal y coordinate
maxZ number maxmal z coordinate
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2705

Methods

<static> create() → {Raphael3d.AABB}

Creates new AABB oject
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2715
Returns:
new AABB object
Type
Raphael3d.AABB

collideWith(aabb) → {boolean}

Computes if receiver collide with another AABB
Parameters:
Name Type Description
aabb Raphael3d.AABB given aabb
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2765
Returns:
Type
boolean

collideXYWith(aabb) → {boolean}

Computes if receiver collide with another AABB (considering only x and y coordinates)
Parameters:
Name Type Description
aabb Raphael3d.AABB given aabb
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2773
Returns:
Type
boolean

reset()

REsets receiver
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2721

setVals(minX, minY, minZ, maxX, maxY, maxZ)

Set new values to receiver
Parameters:
Name Type Description
minX number minimal x coordinate
minY number minimal y coordinate
minZ number minimal z coordinate
maxX number maxmal x coordinate
maxY number maxmal y coordinate
maxZ number maxmal z coordinate
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2751

update()

Updates receiver (computes center, size, diagonalLength)
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2730