Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
|
Fixposition SDK: Math utilities. More...
#include <algorithm>
#include <cmath>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
namespace | fpsdk |
Fixposition SDK. | |
namespace | fpsdk::common |
Fixposition SDK: Common library. | |
namespace | fpsdk::common::math |
Math utilities. | |
Functions | |
template<typename T > | |
constexpr T | fpsdk::common::math::Clamp (const T val, const T min, const T max) |
Clamp value in range. | |
template<typename T > | |
constexpr T | fpsdk::common::math::DegToRad (T degrees) |
Convert degrees to radians. | |
template<typename T > | |
constexpr T | fpsdk::common::math::RadToDeg (T radians) |
Convert radians to degrees. | |
double | fpsdk::common::math::RoundToFracDigits (const double value, const int digits) |
Round to desired number of fractional digits (of precision) | |
Fixposition SDK: Math utilities.
* ___ ___ * \ \ / / * \ \/ / Copyright (c) Fixposition AG (www.fixposition.com) and contributors * / /\ \ License: see the LICENSE file * /__/ \__\ *
Definition in file math.hpp.