pygamelib.base.Math

class pygamelib.base.Math

The math class regroup math functions required for game development.

New in version 1.2.0.

For the moment there is only static methods in that class but it will evolve in the future.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__() Initialize self.
distance(row1, column1, row2, column2) Return the euclidian distance between to points.
intersect(row1, column1, width1, height1, …) This function check if 2 rectangles intersect.