intersection_point(cx,
cy,
sx,
sy,
w,
h=None)
Static Method
|
|
Determines where the shape centered at (cx, cy) intersects with a line
drawn from (sx, sy) to (cx, cy).
Can be overridden in derived classes. Must always be defined as a
static method using staticmethod(...)
- Parameters:
w - the width of the shape
h - the height of the shape. If None , defaults to the
width
- Returns:
- the intersection point (the closest to (sx, sy) if there are more
than one) or (cx, cy) if there is no intersection
- Overrides:
ShapeDrawer.intersection_point
- (inherited documentation)
|