libQuat #{#mainpage}
Overview
Simple library for operations on 3D vectors and quaternions.
Features
- Simple interface in both C and C++
- Can be expoted to a shared library for use in any other high-level languages, including python.
- Utilizes pragma checks to utilize hardware floating point units (FPU), when available on ARM Cortex-M microcontrollers.
- Ease access in a variety of forms to individual elements of vectors and quaternions.
Build
There are no external dependencies for this library other than C++ STL.
- Configure step
Issue the following command from the root folder of the repo. This created the
build
directory where the library and programs will get built.
$ cmake -B build -S.
- Compilation step
Issue the following command from the root folder of the repo. This will compile the static library and will be available as
libquat.lib
orlibquat.a
. The configuration optionRelWithDebInfo
will create a release build with some debug info. For a full release with no debug info, change it toRelease
. The installation folder can also be specified here.
$ cmake --build build -t all [--config RelWithDebInfo] [-DCMAKE_INSTALL_PREFIX=/opt/local]
- Install the library
This command will install the static library and the header file
libquat.h
to the system.
$ cmake --build build -t install
- Compile custom programs
To incorporate to your programs, all functions and their descriptions are available in
libquat.h
and also at the online link above and link against the compiled library.
Contribute
We welcome any contributions and suggestions. Feel free to submit a pull-quest with appropriate info. Thank you in advance.