tuxemon.math module

Math utilities that can be used without Pygame.

tuxemon.math.Point2

alias of Vector2

tuxemon.math.Point3

alias of Vector3

class tuxemon.math.Vector(values, /)[source]

Bases: ABC, Sequence[float]

class tuxemon.math.Vector2(x: float = 0, y: float = 0)[source]
class tuxemon.math.Vector2(values: Sequence[float], /)

Bases: Vector

class tuxemon.math.Vector3(x: float = 0, y: float = 0, z: float = 0)[source]
class tuxemon.math.Vector3(values: Sequence[float], /)

Bases: Vector