EduArt Sensor Ring Library 3.0.1
Loading...
Searching...
No Matches
Matrix3.hpp
Go to the documentation of this file.
1// Copyright (c) 2025 EduArt Robotik GmbH
2
9
10#pragma once
11
12#include <array>
13#include <cmath>
14
17
18namespace eduart {
19
20namespace math {
21
26struct SENSORRING_API Matrix3 {
28 std::array<Vector3, 3> data;
29
31 Vector3& operator[](std::size_t idx);
32
34 const Vector3& operator[](std::size_t idx) const;
35
37 Matrix3 operator*(const Matrix3& other) const;
38
40 Matrix3& operator*=(const Matrix3& other);
41
43 Vector3 operator*(const Vector3& other) const;
44
46 Matrix3 operator*(const double& other) const;
47
49 Matrix3& operator*=(const double& other);
50
52 Matrix3 operator/(const double& other) const;
53
55 Matrix3& operator/=(const double& other);
56};
57
58} // namespace math
59
60} // namespace eduart
Control the import and export of Windows DLL symbols.
Implementation of a vector with length 3.
Matrix of size 3 × 3.
Definition Matrix3.hpp:26
Vector3 & operator[](std::size_t idx)
Indexing the Matrix.
Matrix3 & operator/=(const double &other)
Matrix-Scalar division: Matrix3 / double -> Matrix3.
Matrix3 operator/(const double &other) const
Matrix-Scalar division: Matrix3 / double -> Matrix3.
Matrix3 operator*(const Matrix3 &other) const
Matrix multiplication: Matrix3 * Matrix3 -> Matrix3.
Matrix3 & operator*=(const Matrix3 &other)
Matrix multiplication: Matrix3 * Matrix3 -> Matrix3.
Vector3 operator*(const Vector3 &other) const
Matrix-Vector multiplication: Matrix3 * Vector3 -> Vector3.
std::array< Vector3, 3 > data
Data structure of the Matrix3.
Definition Matrix3.hpp:28
const Vector3 & operator[](std::size_t idx) const
Indexing the Matrix.
Matrix3 & operator*=(const double &other)
Matrix-Scalar multiplication: Matrix3 * double -> Matrix3.
Matrix3 operator*(const double &other) const
Matrix-Scalar multiplication: Matrix3 * double -> Matrix3.
Vector of length 3.
Definition Vector3.hpp:25