Trees | Indices | Help |
|
---|
|
A collidable line.
Author: P. Tute
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
initializes the collidable Line. x_start, y_start define starting point, x_end, y_end define ending point.
|
repr(x)
|
Finds the point on this line closest to a given point. Based on http://www.alecjacobson.com/weblog/?p=1486 |
Checks if this line collides with a horizontal line. Returns a boolean and the intersection-coordinates. |
Nothing Implemented! Checks if this line collides with the given polygon. Status: not implemented |
Checks if this line collides with the given rectangle. The algorithm by Cohen & Sutherland is used. It only works for axis-aligned rectangles. http://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland |
Checks if this line collides with a vertical line. Returns a boolean and the intersection-coordinates. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 6 13:59:48 2014 | http://epydoc.sourceforge.net |