Sygaldry
Loading...
Searching...
No Matches
sygsp-mimu_units.hpp
1/*
2Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music
3Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music
4Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ.
5Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
6
7SPDX-License-Identifier: MIT
8*/
9
10#pragma once
11
12namespace sygaldry { namespace sygsp {
13
17
23
28static constexpr float mss_per_g = 9.80665; // standard gravity according to Wikipedia, citing the International Bureau of Weights and Measures
29
34static constexpr float g_per_mss = 1.0/mss_per_g;
35
40static constexpr float rad_per_deg = std::numbers::pi / 180.0;
41
46static constexpr float deg_per_rad = 180.0 / std::numbers::pi;
47
50
51} }
static constexpr float g_per_mss
Definition sygsp-mimu_units.hpp:34
static constexpr float rad_per_deg
Definition sygsp-mimu_units.hpp:40
static constexpr float mss_per_g
Definition sygsp-mimu_units.hpp:28
static constexpr float deg_per_rad
Definition sygsp-mimu_units.hpp:46