A single-file, cross-platform, public domain game math library for C/C++. Fully inlined HandmadeMath.h. No need for HANDMADE_MATH_IMPLEMENTATION anymore. Added extra parentheses around some macros. Renamed the 'Rows' member of hmm_mat4 to 'Columns'. Since our matrices are column-major, this should have been named 'Columns' from the start. 'Rows' is still present, but has been deprecated. Added array subscript operators for vector and matrix types in C++. This is provided as a convenience, but be aware that it may incur an extra function call in unoptimized builds. Made HMM_Power faster, Fixed possible efficiency problem with HMM_Normalize, RENAMED HMM_LengthSquareRoot to HMM_LengthSquared, RENAMED HMM_RSqrtF to HMM_RSquareRootF, RENAMED HMM_SqrtF to HMM_SquareRootF, REMOVED Inner function (user should use Dot now), REMOVED HMM_FastInverseSquareRoot function declaration.

Features

  • This library is in the public domain
  • Lots of testing
  • Scalar operations on vectors
  • Unary Minus operator
  • A single-file, cross-platform, public domain game
  • Library for C/C++

Project Samples

Project Activity

See All Activity >

Categories

Game Engines

License

Creative Commons Attribution License

Follow Handmade Math

Handmade Math Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Handmade Math!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Game Engines

Registered

2022-12-13