mathfu/1.1.0

C++ math library developed primarily for games focused on simplicity and efficiency.
Recipe info
460(460)
2022-10-22

Available packages
Linux
Windows
macOS
macOS M1

Install
Add the following line to your conanfile.txt:
[requires]
mathfu/1.1.0

Using mathfu

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

conanfile.txt

[requires]
mathfu/1.1.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): mathfu
  • CMake target name(s): mathfu::mathfu
  • pkg-config file name(s): mathfu.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(mathfu REQUIRED)
# ...
target_link_libraries(YOUR_TARGET mathfu::mathfu)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the mathfu homepage listed above:

#include "mathfu/constants.h"
#include "mathfu/glsl_mappings.h"
#include "mathfu/hlsl_mappings.h"
#include "mathfu/internal/disable_warnings_begin.h"
#include "mathfu/internal/disable_warnings_end.h"
#include "mathfu/internal/matrix_4x4_simd.h"
#include "mathfu/internal/vector_2.h"
#include "mathfu/internal/vector_2_simd.h"
#include "mathfu/internal/vector_3.h"
#include "mathfu/internal/vector_3_simd.h"
#include "mathfu/internal/vector_4.h"
#include "mathfu/internal/vector_4_simd.h"
#include "mathfu/matrix.h"
#include "mathfu/matrix_4x4.h"
#include "mathfu/quaternion.h"
#include "mathfu/rect.h"
#include "mathfu/utilities.h"
#include "mathfu/vector.h"