All the Maths‽ — a C++11 mathematics library (superseded by togo)
C++ Lua
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
am
doc
test
.gitignore
LICENSE
README.md
am.sublime-project
build.lua
precore_import.lua
premake4.lua

README.md

What is this?

All the Maths‽ (AM) is a general-purpose mathematics C++11 header library which supplies:

  • Vectors (yay!) and matrices (also yay!) and all the fancy operations on them that you'd expect from a maths lib.
  • Hashing algorithms.
  • (A whole bunch of other stuff.)

It's, uh, a work-in-progress.

If you want a proper graphics maths lib that works with crappy compilers, please use the lovely GLM.

All the maths, you say?

Hence the interrobang.

Why?

Because I can.

Building

Being a header library, AM is not compiled directly. However, all features support Clang 3.3+ with libc++ (SVN head). GCC with libstdc++ is only partially supported (as of 4.7.3) due to issues in ISO compliance (see Defects below).

The tests can be compiled using my standard project protocol.

Defects

The following features cannot be used in GCC (4.7.3):

  1. GCC fails to compile a pointer arithmetic expression in the constexpr implementation for murmur3 (<am/hash/murmur.hpp>, implementation at <am/hash/detail/hash/murmur_impl.hpp> -- specifically, calc_c_seq()).

License

AM carries the MIT license, which is gracefully plastered below. Some algorithms have separate (MIT-compatible) licenses, copyrights, or are in the public domain. These are indicated in the appropriate sections.

Copyright (c) 2012-2015 Coranna Howard <me@komiga.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.