Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. LÖVE
  3. Vornmath

Vornmath

MITLuav0.4

A comprehensive vector, matrix, complex number, and quaternion math library for Lua 5.1 through 5.4 and LuaJIT.

GitHubGitHub
22 stars2 forks0 contributors

Overview

Vornmath is a pure Lua library providing extensive mathematical types and operations for game development, graphics, and scientific computing. It offers a unified API for scalars, vectors, matrices, complex numbers, and quaternions with support for component-wise and linear algebraic operations.

Key Features

  • Multiple Numeric Types — Supports numbers, complexes, quaternions, and vectors/matrices of dimensions 2–4 with numeric, complex, or boolean components.
  • Operator Overloading — Uses Lua metamethods to enable natural syntax like a + b and a * b for all types.
  • Out Variables for Performance — Functions accept optional out parameters to reuse objects and minimize allocations.
  • Lazy Function Generation — Employs a "bakery" system to generate millions of possible function signatures on-demand, keeping initial footprint small.
  • Comprehensive Function Set — Includes trigonometric, exponential, vector, matrix, relational, and color-space operations.
  • Swizzling Support — Enables flexible component access and manipulation in vectors via xyzw, rgba, or stpq notation.

Philosophy

Vornmath prioritizes completeness and correctness, offering mathematically sound operations across all supported types while maintaining performance through lazy compilation and out-variable patterns.

Quick Stats

Stars22
Forks2
Contributors0
Open Issues13
Last commit4 months ago
CreatedSince 2023

Tags

#graphics#quaternions#complex-numbers#game-development#linear-algebra#numerical-computing#lua#vector-math#pure-lua#math-library

Built With

L
Lua

Included in

LÖVE4.3k
Auto-fetched 1 day ago

Related Projects

Cirno's Perfect Math LibraryCirno's Perfect Math Library

Cirno's Perfect Math Library: Just about everything you need for 2D/3D games. Hopefully.

Stars352
Forks43
Last commit8 months ago
delaunaydelaunay

Delaunay triangulation for convex polygon

Stars111
Forks17
Last commit9 years ago
MLibMLib

A math and collisions library for Lua.

Stars91
Forks12
Last commit2 years ago
shashshash

A simple, lightweight spatial hash for Lua

Stars79
Forks4
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub