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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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