Package svs_simulation :: Package numdata :: Module geomlib :: Class AxialBounds2D
[show private | hide private]
[frames | no frames]

Class AxialBounds2D

Known Subclasses:
CentredAxialBounds2D

Represents anaxially-aligned rectangular bounding box in 2D space.
Method Summary
  __init__(self, width, height, world)
  __str__(self)
Returns string representation of self.
  addPoint(self, x, y)
Adds points into the bounding area.
boolean collidesWith(self, other)
Checks if this sphere collides with the specified sphere.
boolean containedWithin(self, minX, minY, maxX, maxY)
Checks if this sphere is fully contained within the specified bounding area.
boolean containsPoint(self, x, y)
Checks if point lies within local bounds.
boolean containsPointInWorld(self, x, y)
Checks if point lies within world bounds.
  decode(self, data)
Applies encoded data to self.
  encode(self)
Returns encoded representation of self.
  intersects(self, minX, minY, maxX, maxY)
Checks is specified area intersects with self.
integer liesWithin(self, minX, minY, maxX, maxY)
Checks if this sphere lies in the specified bounding area.
boolean locatedWithin(self, minX, minY, maxX, maxY)
Checks if the location of the sphere lies in the specified bounding area.
  prepareToAutosize(self)
Prepares bounds for autosizing
  reset(self)
Sets bounds to zero sizes.
  setDimensions(self, dimX, dimY)
Creates a bounding area for an object of the specified width and height.
  setLocation(self, x, y)
Sets location of bounds in world.
  translate(self, x, y)
Translates location of spehere in world.

Method Details

__str__(self)
(Informal representation operator)

Returns string representation of self.

addPoint(self, x, y)

Adds points into the bounding area.

collidesWith(self, other)

Checks if this sphere collides with the specified sphere.

Returns True or False.
Returns:
boolean

containedWithin(self, minX, minY, maxX, maxY)

Checks if this sphere is fully contained within the specified bounding area.

Returns True or False.
Returns:
boolean

containsPoint(self, x, y)

Checks if point lies within local bounds.

Returns True or False.
Returns:
boolean

containsPointInWorld(self, x, y)

Checks if point lies within world bounds.

Returns True or False.
Returns:
boolean

decode(self, data)

Applies encoded data to self.

encode(self)

Returns encoded representation of self.

@rtype:dict

intersects(self, minX, minY, maxX, maxY)

Checks is specified area intersects with self.

liesWithin(self, minX, minY, maxX, maxY)

Checks if this sphere lies in the specified bounding area.

Returns either geom_const.NO_INTERSECT or a value for the side it intersects with.
Returns:
integer

locatedWithin(self, minX, minY, maxX, maxY)

Checks if the location of the sphere lies in the specified bounding area.

Returns True or False.
Returns:
boolean

prepareToAutosize(self)

Prepares bounds for autosizing

reset(self)

Sets bounds to zero sizes.

setDimensions(self, dimX, dimY)

Creates a bounding area for an object of the specified width and height.

setLocation(self, x, y)

Sets location of bounds in world.

translate(self, x, y)

Translates location of spehere in world.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 http://epydoc.sf.net