mosp :: collide :: Rectangle :: Class Rectangle
[hide private]
[frames] | no frames]

Class Rectangle

source code


A collidable rectangle. Not fully implemented.


Status: not completely implemented

Author: P. Tute

Instance Methods [hide private]
 
__init__(self, x0, y0, x1, y1)
initializes the collidable rectangle.
source code
 
collide_circle(self, x, y, radius)
Not implemented! Checks if this rectangle collides with the given circle.
source code
 
collide_rectangle(self, x_min, y_min, x_max, y_max)
Not implemented! Checks if this rectangle collides with the given rectangle.
source code
 
collide_polygon(corners)
Not implemented! Checks if this rectangle collides with the given polygon.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x0, y0, x1, y1)
(Constructor)

source code 

initializes the collidable rectangle.

x0, y0 define south west point of rectangle, x1, y1 define north east point of rectangle.

Overrides: object.__init__

collide_circle(self, x, y, radius)

source code 

Not implemented! Checks if this rectangle collides with the given circle.

Status: not implemented

collide_rectangle(self, x_min, y_min, x_max, y_max)

source code 

Not implemented! Checks if this rectangle collides with the given rectangle.

Status: not implemented

collide_polygon(corners)

source code 

Not implemented! Checks if this rectangle collides with the given polygon.

Status: not implemented