Dealing with math in gamedev can be a hard task for beginners, so this library provides some code to make your life easier with strong focus on gamedev. Some tools for collision detection (but not physics) are provided too. The library is not strictly about math, so some helpfull 2d gamedev relevant abstractions (like chains) are included too. Key features:
* Easy dealing with ranges, intervals
* Timers and callbacks
* Chains (for making chains of enemies, snakes, centipedes etc.)
* Some collision detection relevant stuff like SAT, Sweep and Prune, QuadTree-management, AABB computations, OBB computations, Point rotations, Braking convex polys in concav subpolies etc.

Project Activity

See All Activity >

License

Public Domain

Follow math4gd2d

math4gd2d Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of math4gd2d!

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Related Categories

Java Game Development Frameworks

Registered

2012-07-27