M5Unit-IMU 0.0.2 git rev:e5b00aa
Loading...
Searching...
No Matches
quaternion.hpp File Reference

Minimal quaternion arithmetic for attitude representation (framework independent) More...

#include <cmath>
#include "vector3.hpp"

Go to the source code of this file.

Classes

struct  m5::math::Quaternion
 Plain Hamilton quaternion (float) used to represent attitude. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Variables

constexpr float m5::math::QUATERNION_ZERO_EPSILON {1e-9f}
 Quaternions with a norm below this are treated as zero (normalize safety)
 
constexpr float m5::math::QUATERNION_PI {3.14159265358979323846f}
 PI (float)
 

Detailed Description

Minimal quaternion arithmetic for attitude representation (framework independent)