Skip to content

Math Library

shmellyorc edited this page Sep 13, 2026 · 3 revisions

Void includes a comprehensive set of math utilities for game development. Each type is documented in its own page.


Vector Types

Type Description
Vect2 2D vector with arithmetic, transformations, and geometric operations
Vect3 3D vector for spatial calculations
Vect4 4D vector for homogeneous coordinates and quaternions

Matrix

Type Description
Matrix VOID-owned 4x4 matrix used by cameras, shaders, and the renderer-neutral 2D pipeline

Geometric Types

Type Description
Rect2 2D axis-aligned rectangle with containment, intersection, and union operations

Color

Type Description
Color RGBA color with hex parsing, blending, and arithmetic operations

Animation

Type Description
Easing 41 easing types: Linear plus 10 In/Out/InOut/OutIn curve families

Random

Type Description
FastRandom Xorshift128 generator with thread-local Shared instances and deterministic seeding

Related

  • MathHelper - Constants, interpolation, clamping, wrapping, and conversion functions

Back to Home

Clone this wiki locally