Class Index | File Index

Classes


Class AABB

Axis aligned bounding box

   7----6        y
  /    /|        |
 4----5 |        |
 | 3--|-2        |______ x  
 |/   |/       .�
 0----1       �z

Defined in: AABB.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
AABB()
Method Summary
Method Attributes Method Name and Description
 
getNegative(normal)
returns the negative coordinate of the transformed bounding box.
 
getOnScreenSize(sceneNode, camera)
returns the distance from minPos to maxPos in projected space
 
getPositive(normal)
returns the positive coordinate of the transformed bounding box.
 
render(sceneNode, camera)
 
setColor(color)
 
setDimension(p0, p1, p2, p3, p4, p5, p6, p7)
set object space coordinates of this bounding box
 
set object space coordinates by providing the minimum and the maximum vertex of the aabb.
 
setTransform(transform)
transforms the aabb from object space.
 
calculates min, max, center and radius of the transformed AABB.
Class Detail
AABB()
See:
http://www.lighthouse3d.com/tutorials/view-frustum-culling/geometric-approach-testing-boxes-ii/
Method Detail
getNegative(normal)
returns the negative coordinate of the transformed bounding box.
Parameters:
normal
See:
http://www.lighthouse3d.com/tutorials/view-frustum-culling/geometric-approach-testing-boxes-ii/

getOnScreenSize(sceneNode, camera)
returns the distance from minPos to maxPos in projected space
Parameters:
sceneNode
camera

getPositive(normal)
returns the positive coordinate of the transformed bounding box.
Parameters:
normal
See:
http://www.lighthouse3d.com/tutorials/view-frustum-culling/geometric-approach-testing-boxes-ii/

render(sceneNode, camera)
Parameters:
sceneNode
camera

setColor(color)
Parameters:
{[r|g|b|a]} color
each value must be between 0 and 1

setDimension(p0, p1, p2, p3, p4, p5, p6, p7)
set object space coordinates of this bounding box
Parameters:
p0
p1
p2
p3
p4
p5
p6
p7

setDimensionByMinMax(min, max)
set object space coordinates by providing the minimum and the maximum vertex of the aabb.
Parameters:
min
max

setTransform(transform)
transforms the aabb from object space.
Parameters:
transform

update()
calculates min, max, center and radius of the transformed AABB. p0 to p7 will be kept in object space.

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jun 09 2013 12:38:10 GMT+0200 (CEST)