28#ifndef CORE_VECTORMATH_HPP
29#define CORE_VECTORMATH_HPP
46 for(uint32 i = 0; i < L; i++) {
62 void cross(CartesianVector<3> a, CartesianVector<3> b, CartesianVector<3> &result);
63 CartesianVector<3>
cross(
const CartesianVector<3> &a,
const CartesianVector<3> &b);
69 void tilde(
const CartesianVector<3> &v, Matrix<3, 3> &t);
70 Matrix<3, 3>
tilde(
const CartesianVector<3> &v);
78 template<u
int32 R1, u
int32 C1R2>
Standard vector class derived from Matrix.
Definition CartesianVector.hpp:39
Matrix math implementation.
Definition Matrix.hpp:55
std::array< std::array< floating_point, C >, R > values
Definition Matrix.hpp:213
Definition CircularBuffer.hpp:28
void eSubtract(Matrix< R, C > A, Matrix< R, C > B, Matrix< R, C > &result)
Function to subtract B from A, element-wise.
Definition matrixmath.hpp:221
Matrix< R, C > operator+(const Matrix< R, C > &A, const Matrix< R, C > &B)
Overload of matrix addition - Two matrices.
Definition matrixmath.hpp:274
Matrix< R1, C2 > operator*(const Matrix< R1, C1R2 > &A, const Matrix< C1R2, C2 > &B)
Overload of matrix multiplication - Two matrices.
Definition matrixmath.hpp:247
void eAdd(const Matrix< R, C > &A, const Matrix< R, C > &B, Matrix< R, C > &result)
Function to add two matrices element-wise.
Definition matrixmath.hpp:196
void dot(const CartesianVector< L > &a, const CartesianVector< L > &b, floating_point &result)
Definition vectormath.hpp:44
void cross(CartesianVector< 3 > a, CartesianVector< 3 > b, CartesianVector< 3 > &result)
Definition vectormath.cpp:20
Matrix< R, C > operator-(const Matrix< R, C > &A, const Matrix< R, C > &B)
Returns value – less efficient in some cases.
Definition matrixmath.hpp:300
void tilde(const CartesianVector< 3 > &v, Matrix< 3, 3 > &t)
Definition vectormath.cpp:31
void add(const floating_point &a, const Matrix< R, C > &A, Matrix< R, C > &result)
Function to add a scalar to a matrix.
Definition matrixmath.hpp:171
void multiply(const Matrix< R1, C1R2 > &A, const Matrix< C1R2, C2 > &B, Matrix< R1, C2 > &result)
Function to multiply two matrices.
Definition matrixmath.hpp:58