Class Index | File Index

Classes


Class R.collision.broadphase.SpatialGridNode


Extends R.collision.broadphase.AbstractCollisionNode.
A single node within a R.collision.broadphase.SpatialGrid. When the collision model is updated, the nodes within the grid will be updated to reflect the objects within them. A node defines a single rectangle within the entire R.collision.broadphase.SpatialGrid
Defined in: spatialgridnode.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create an instance of an R.collision.broadphase.SpatialNode for use within a R.collision.broadphase.SpatialGrid
Method Summary
Method Attributes Method Name and Description
 
contains(point)
Returns true if the spatial node contains the point specified.
 
Get the class name of this object
 
Get the rectangle which defines this node.
Methods borrowed from class R.collision.broadphase.AbstractCollisionNode:
addObject, clearDirty, getCount, getIndex, getObjects, isDirty, removeObject
Class Detail
R.collision.broadphase.SpatialGridNode(rect)
Create an instance of an R.collision.broadphase.SpatialNode for use within a R.collision.broadphase.SpatialGrid
Parameters:
rect
{R.math.Rectangle2D} The rectangle which defines this node.
Method Detail
{Boolean} contains(point)
Returns true if the spatial node contains the point specified.
Parameters:
point
{R.math.Point2D} The point to check
Returns:
{Boolean}

{String} getClassName()
Get the class name of this object
Returns:
{String} "R.collision.broadphase.SpatialGridNode"

{R.math.Rectangle2D} getRect()
Get the rectangle which defines this node.
Returns:
{R.math.Rectangle2D}

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:15 GMT-0400 (EDT)