Colobot
|
Matrix struct and related functions. More...
#include "math/const.h"
#include "math/func.h"
#include "math/vector.h"
#include <cmath>
#include <cassert>
Go to the source code of this file.
Classes | |
struct | Math::Matrix |
4x4 matrix More... | |
Namespaces | |
Math | |
Namespace for (new) math code. | |
Functions | |
bool | Math::MatricesEqual (const Matrix &m1, const Matrix &m2, float tolerance=TOLERANCE) |
Checks if two matrices are equal within given tolerance. More... | |
Math::Matrix | Math::Transpose (const Math::Matrix &m) |
Convenience function for getting transposed matrix. More... | |
Math::Matrix | Math::MultiplyMatrices (const Math::Matrix &left, const Math::Matrix &right) |
Convenience function for multiplying a matrix. More... | |
Math::Vector | Math::MatrixVectorMultiply (const Math::Matrix &m, const Math::Vector &v, bool wDivide=false) |
Calculates the result of multiplying m * v. More... | |
Matrix struct and related functions.