EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
Math.hpp File Reference

Collection of math functions. More...

#include "sensorring/math/Matrix3.hpp"
#include "sensorring/math/Vector3.hpp"
#include "sensorring/platform/SensorringExport.hpp"
Include dependency graph for Math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SENSORRING_EXPORT double eduart::sensorring::math::degreesToRadians (double degrees)
 Convert degrees to radians.
SENSORRING_EXPORT double eduart::sensorring::math::radiansToDegrees (double radians)
 Convert radians to degrees.
SENSORRING_EXPORT const Vector3 eduart::sensorring::math::eulerDegreesFromRotationMatrix (const Matrix3 &rot_m)
 Calculate euler angles of a rotation from a rotation matrix (RPY-convention).
SENSORRING_EXPORT const Vector3 eduart::sensorring::math::eulerRadiansFromRotationMatrix (const Matrix3 &rot_m)
 Calculate euler angles of a rotation from a rotation matrix (RPY-convention).
SENSORRING_EXPORT const Matrix3 eduart::sensorring::math::rotMatrixFromEulerDegrees (const Vector3 &rotation_deg)
 Calculate a rotation matrix from euler angles (RPY-convention).
SENSORRING_EXPORT const Matrix3 eduart::sensorring::math::rotMatrixFromEulerRadians (const Vector3 &rotation_rad)
 Calculate a rotation matrix from euler angles (RPY-convention).

Variables

static constexpr double eduart::sensorring::math::PI = 3.141592653589793238462643383279502884
 PI constant.

Detailed Description

Collection of math functions.

Author
EduArt Robotik GmbH
Date
2025-11-20

Function Documentation

◆ degreesToRadians()

SENSORRING_EXPORT double eduart::sensorring::math::degreesToRadians ( double degrees)

Convert degrees to radians.

Parameters
[in]degreesAngle in degrees.
Returns
Equivalent angle in radians.

◆ eulerDegreesFromRotationMatrix()

SENSORRING_EXPORT const Vector3 eduart::sensorring::math::eulerDegreesFromRotationMatrix ( const Matrix3 & rot_m)

Calculate euler angles of a rotation from a rotation matrix (RPY-convention).

Parameters
[in]rot_mRotation matrix to be converted to euler angles
Returns
Euler angles in degrees

◆ eulerRadiansFromRotationMatrix()

SENSORRING_EXPORT const Vector3 eduart::sensorring::math::eulerRadiansFromRotationMatrix ( const Matrix3 & rot_m)

Calculate euler angles of a rotation from a rotation matrix (RPY-convention).

Parameters
[in]rot_mRotation matrix to be converted to euler angles
Returns
Euler angles in radians

◆ radiansToDegrees()

SENSORRING_EXPORT double eduart::sensorring::math::radiansToDegrees ( double radians)

Convert radians to degrees.

Parameters
[in]radiansAngle in radians.
Returns
Equivalent angle in degrees.

◆ rotMatrixFromEulerDegrees()

SENSORRING_EXPORT const Matrix3 eduart::sensorring::math::rotMatrixFromEulerDegrees ( const Vector3 & rotation_deg)

Calculate a rotation matrix from euler angles (RPY-convention).

Parameters
[in]rotation_degEuler angles in degrees to be converted to a rotation matrix
Returns
Rotation matrix

◆ rotMatrixFromEulerRadians()

SENSORRING_EXPORT const Matrix3 eduart::sensorring::math::rotMatrixFromEulerRadians ( const Vector3 & rotation_rad)

Calculate a rotation matrix from euler angles (RPY-convention).

Parameters
[in]rotation_radEuler angles in radians to be converted to a rotation matrix
Returns
Rotation matrix