I know there are a multitude of C++ math libraries out there, but my current project is C-only (C11).

So far I've made due with writing my own matrix/vector functions, but now I need to do the more complex operations like matrix rotation and quaternion multiplication... and I'd really rather focus on the project than painstakingly building a whole math library.

Does anyone know of any fast (game-usable, not academic) C-only stand-alone math libraries out there? I've done numerous searches, and haven't found much.


closed as off-topic by congusbongus, Alexandre Vaillancourt May 31 '18 at 1:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – congusbongus, Alexandre Vaillancourt
If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ I think softwarerecs.stackexchange.com is a better place for this question. \$\endgroup\$ – congusbongus May 31 '18 at 0:57
  • \$\begingroup\$ Didn't know that exchange existed. Thanks! \$\endgroup\$ – Nairou May 31 '18 at 0:59
  • \$\begingroup\$ Yep, closing for "what technology to use". Unfortunately, question asking what technology to use are off-topic here. \$\endgroup\$ – Alexandre Vaillancourt May 31 '18 at 1:59
  • \$\begingroup\$ FYI, ANSI C is C89. C11 is ISO C. \$\endgroup\$ – Quentin May 31 '18 at 9:49