Skip to content

simple math library for games, (vector, matrix, etc).

Notifications You must be signed in to change notification settings

phil-stein/math

Repository files navigation

math library

define MATH_PRINT_NO_COLOR gloablly to disable P_VEC3(), etc. to print using colors -> -DMATH_PRINT_NO_COLOR

simple math library for games.
heavily inspired by and partially a direct copy of cglm
if you are lookig for something that covers all bases, is fast and stable,
use the aforementioned cglm or the original c++ glm

features:

  • util
  • vec2
  • ivec2
  • vec3
  • ivec3
  • vec4
  • ivec4
  • vec compare
  • mat3
  • mat4
  • simd!
  • rand
    • random int / long long
    • perlin / simplex

About

simple math library for games, (vector, matrix, etc).

Resources

Stars

Watchers

Forks

Languages