EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
Math.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 EduArt Robotik GmbH
2
9
10#pragma once
11
14#include "sensorring/platform/SensorringExport.hpp"
15
16namespace eduart {
17
18namespace sensorring {
19
20namespace math {
21
23static constexpr double PI = 3.141592653589793238462643383279502884;
24
30SENSORRING_EXPORT double degreesToRadians(double degrees);
31
37SENSORRING_EXPORT double radiansToDegrees(double radians);
38
44SENSORRING_EXPORT const Vector3 eulerDegreesFromRotationMatrix(const Matrix3& rot_m);
45
51SENSORRING_EXPORT const Vector3 eulerRadiansFromRotationMatrix(const Matrix3& rot_m);
52
58SENSORRING_EXPORT const Matrix3 rotMatrixFromEulerDegrees(const Vector3& rotation_deg);
59
65SENSORRING_EXPORT const Matrix3 rotMatrixFromEulerRadians(const Vector3& rotation_rad);
66
67} // namespace math
68
69} // namespace sensorring
70
71} // namespace eduart
SENSORRING_EXPORT const Matrix3 rotMatrixFromEulerRadians(const Vector3 &rotation_rad)
Calculate a rotation matrix from euler angles (RPY-convention).
SENSORRING_EXPORT double radiansToDegrees(double radians)
Convert radians to degrees.
SENSORRING_EXPORT const Vector3 eulerRadiansFromRotationMatrix(const Matrix3 &rot_m)
Calculate euler angles of a rotation from a rotation matrix (RPY-convention).
SENSORRING_EXPORT const Vector3 eulerDegreesFromRotationMatrix(const Matrix3 &rot_m)
Calculate euler angles of a rotation from a rotation matrix (RPY-convention).
SENSORRING_EXPORT const Matrix3 rotMatrixFromEulerDegrees(const Vector3 &rotation_deg)
Calculate a rotation matrix from euler angles (RPY-convention).
static constexpr double PI
PI constant.
Definition Math.hpp:23
SENSORRING_EXPORT double degreesToRadians(double degrees)
Convert degrees to radians.
Implementation of a matrix of size 3 × 3.
Implementation of a vector with length 3.
Matrix of size 3 × 3.
Definition Matrix3.hpp:28
Vector of length 3.
Definition Vector3.hpp:27