beatmup.IntegerContour2D¶
- class beatmup.IntegerContour2D¶
A sequence of integer-valued 2D points
- __init__(self: beatmup.IntegerContour2D) None ¶
Methods
__init__
(self)add_point
(self, x, y)Adds a new point to the end of the contour.
clear
(self)Removes contour content
get_length
(self)Returns contour length
get_point
(self, index)Returns a point by its index
get_point_count
(self)Returns number of points in the contour