YAGE  0.02
Yet Another Game Engine
Classes | Namespaces | Typedefs | Functions
matrix.hpp File Reference

Templated matrix class. More...

#include <algorithm>
#include <exception>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  yage::Matrix< Rows, Cols, Type >
 Base Matrix class used by other similar classes. More...
 
class  yage::Matrix< Rows, Cols, Type >
 Base Matrix class used by other similar classes. More...
 
class  yage::Vector2< Type >
 2D Vector class. More...
 

Namespaces

 yage::matrix
 Namespace containing functions that operate on matrices.
 

Typedefs

typedef Vector2< double > yage::Vector2d
 Definition of a 2D vector.
 

Functions

template<int M, int N, class T >
Matrix< N, M, T > yage::matrix::transpose (const Matrix< M, N, T > &m)
 Transposes a matrix and returns the result. More...
 
template<int R, class T >
yage::matrix::dot (const Matrix< R, 1, T > &m1, const Matrix< R, 1, T > &m2)
 Returns the dot product between two vectors. More...
 
template<int M, int N, int P, int Q, class T >
Matrix< M, Q, T > yage::matrix::multiply (const Matrix< M, N, T > &m1, const Matrix< P, Q, T > &m2)
 Multiplies two matrices together. More...
 

Detailed Description

Templated matrix class.

Matrix

This is a very general matrix class that can then be inherited by vectors and other similar data structures to minimize code density.