Colobot
Classes | Namespaces | Functions
matrix.h File Reference

Matrix struct and related functions. More...

#include "math/const.h"
#include "math/func.h"
#include "math/vector.h"
#include <cmath>
#include <cassert>
Include dependency graph for matrix.h:

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...
 

Detailed Description

Matrix struct and related functions.