Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

2D vector, line and polygon classes, and a spatial hash implementation

Project description

wasabigeom - fast geometry types for Python games

Build Wheels PyPI PyPI - Python Version PyPI - Wheel Documentation Status Discord

wasabigeom is a 2D geometry library intended for game development. It started life as a pure Python library but is now implemented in optimised Cython code.

Documentation

View on ReadTheDocs

Installation

To install, just run:

pip install wasabi-geom

What's new in 2.0.0

I took the existing wasabi.geom code and Cythonised it.

I've made some big, breaking changes to the interface; notably, I prefer radians thes days and eschew namespace packages. To install the old, pure-Python version, pin to wasabi-geom<2.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page