YAGE  v0.1.1
Yet Another Game Engine
yage::math Namespace Reference

Namespaces

 detail
 
 matrix
 Namespace containing functions that operate on matrices.
 

Classes

class  Matrix
 Base Matrix class used by other similar classes. More...
 
class  Vector
 
class  Vector2
 2D Vector class. More...
 

Typedefs

using Vector2d = Vector2< double >
 Definition of a 2D vector. More...
 

Functions

template<int M, int N, class T >
Matrix< M, N, T > operator+ (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (Matrix< M, N, T > lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator+ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator+ (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator- (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator* (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator* (const T &lhs, Matrix< M, N, T > rhs)
 
template<int M, int N, class T >
Matrix< M, N, T > operator/ (Matrix< M, N, T > lhs, const T &rhs)
 
template<int M, int N, class T >
bool operator== (const Matrix< M, N, T > &lhs, const Matrix< M, N, T > &rhs)
 
template<int M, int N, class T >
std::ostream & operator<< (std::ostream &os, const Matrix< M, N, T > &mat)
 

Typedef Documentation

◆ Vector2d

using yage::math::Vector2d = typedef Vector2<double>

Function Documentation

◆ operator*() [1/2]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator* ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator*() [2/2]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator* ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator+() [1/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator+ ( Matrix< M, N, T >  lhs,
const Matrix< M, N, T > &  rhs 
)

◆ operator+() [2/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator+ ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator+() [3/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator+ ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator-() [1/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator- ( Matrix< M, N, T >  lhs,
const Matrix< M, N, T > &  rhs 
)

◆ operator-() [2/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator- ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator-() [3/3]

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator- ( const T &  lhs,
Matrix< M, N, T >  rhs 
)

◆ operator/()

template<int M, int N, class T >
Matrix<M, N, T> yage::math::operator/ ( Matrix< M, N, T >  lhs,
const T &  rhs 
)

◆ operator<<()

template<int M, int N, class T >
std::ostream& yage::math::operator<< ( std::ostream &  os,
const Matrix< M, N, T > &  mat 
)

◆ operator==()

template<int M, int N, class T >
bool yage::math::operator== ( const Matrix< M, N, T > &  lhs,
const Matrix< M, N, T > &  rhs 
)