Documentation

Classes

Class Box3d

Axis aligned bounding box.

Class Overview
Box3d()
An axis aligned bounding box with a min and a maximal edge.

Field Summary
Field Attributes Field Name and Description
 
Maximal Edge of the bounding box
 
Minimal Edge of the bounding box
Method Summary
Method Attributes Method Name and Description
 
Adds a point to the bounding box, increasing the box if the point is outside of the box
 
Adds a point to the bounding box, increasing the box if the point is outside of the box
 
Creates a clone of the box
 
Returns the center of the box
 
Returns all 8 edges of the bounding box
 
Returns the extent (or size) of the box
 
Returns if the box intersects with another box
 
intersectsWithLine(lineStart, lineEnd)
Returns if the box intersects with a line
 
Returns if a point is inside this box
Field Detail
{Vect3d} MaxEdge
Maximal Edge of the bounding box

{Vect3d} MinEdge
Minimal Edge of the bounding box
Method Detail
addInternalPoint(x, y, z)
Adds a point to the bounding box, increasing the box if the point is outside of the box
Parameters:
x
y
z

addInternalPointByVector(v)
Adds a point to the bounding box, increasing the box if the point is outside of the box
Parameters:
v
{Vect3d} 3d vector representing the point

{Box3d} clone()
Creates a clone of the box
Returns:
{Box3d} clone

{Vect3d} getCenter()
Returns the center of the box
Returns:
{Vect3d} center

{Array} getEdges()
Returns all 8 edges of the bounding box
Returns:
{Array} edges

{Vect3d} getExtent()
Returns the extent (or size) of the box
Returns:
{Vect3d} extent

intersectsWithBox(box)
Returns if the box intersects with another box
Parameters:
box
{Box3d} other box

intersectsWithLine(lineStart, lineEnd)
Returns if the box intersects with a line
Parameters:
lineStart
{Vect3d} start of the line
lineEnd
{Vect3d} end of the line

isPointInside(p)
Returns if a point is inside this box
Parameters:
p
{Vect3d} point to test

© 2010 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit