| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package numdata :: Module geomlib :: Class SphereBounds2D |
|
| Method Summary | |
|---|---|
__init__(self,
world)
| |
Adds points into the radius of the sphere. | |
| boolean |
Checks if this sphere collides with the specified sphere. |
| boolean |
Checks if this sphere is fully contained within the specified bounding area. |
| boolean |
Checks if point lies wihtin sphere. |
| boolean |
Checks if point lies within bounds as mapped to world. |
Applies encoded data to self. | |
Returns encoded representation of self. | |
| integer |
Checks if this sphere lies in the specified bounding area. |
| boolean |
Checks if the location of the sphere lies in the specified bounding area. |
Sets bounds to zero sizes. | |
Creates a bounding sphere for an object of the specified width and height. | |
Sets location of spehere in world. | |
Translates location of spehere in world. | |
| Method Details |
|---|
addPoint(self, x, y)Adds points into the radius of the sphere. |
collidesWith(self, sphere)Checks if this sphere collides with the specified sphere. ReturnsTrue or False.
|
containedWithin(self, minX, minY, maxX, maxY)Checks if this sphere is fully contained within the specified bounding area. ReturnsTrue or False.
|
containsPoint(self, x, y)Checks if point lies wihtin sphere. ReturnsTrue or False.
|
containsPointInWorld(self, x, y)Checks if point lies within bounds as mapped to world. ReturnsTrue or False.
|
decode(self, data)Applies encoded data to self. |
encode(self)Returns encoded representation of self. @rtype:dict |
liesWithin(self, minX, minY, maxX, maxY)Checks if this sphere lies in the specified bounding area. Returns eithergeom_const.NO_INTERSECT or a value for
the side it intersects with.
|
locatedWithin(self, minX, minY, maxX, maxY)Checks if the location of the sphere lies in the specified bounding area. ReturnsTrue or False.
|
reset(self)Sets bounds to zero sizes. |
setDimensions(self, width, height)Creates a bounding sphere for an object of the specified width and height. |
setLocation(self, x, y)Sets location of spehere in world. |
translate(self, x, y)Translates location of spehere in world. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:24 2005 | http://epydoc.sf.net |