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

Class Rect2D


Represents an orthogonal rectangular area in 2D space.
Method Summary
  __init__(self, x, y, dimX, dimY)
  containsPoint(self, x, y)
Tests if specified x and y coordinates exist within the bounding area, returning True if so, False otherwise.
  decode(self, data)
Sets self to encoded values.
  encode(self)
Returns encoded description of self.
  intersects(self, minX, minY, maxX, maxY)
Checks is specified area intersects with self.
  setOrigin(self, x, y)
Sets origin of bounds.
  setSize(self, dimX, dimY)
Sets size of bounds.

Method Details

containsPoint(self, x, y)

Tests if specified x and y coordinates exist within the bounding area, returning True if so, False otherwise.

decode(self, data)

Sets self to encoded values.

@type data:dict

encode(self)

Returns encoded description of self.

@rtype:dict

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

Checks is specified area intersects with self.

setOrigin(self, x=0.0, y=0.0)

Sets origin of bounds.

setSize(self, dimX=0.0, dimY=0.0)

Sets size of bounds.

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