TGX 1.0.3
A tiny 2D/3D graphics library optimized for 32 bits microcontrollers.
Loading...
Searching...
No Matches
Mat4.h File Reference

4x4 matrix class. More...

#include <stdint.h>
#include <type_traits>
#include "Misc.h"
#include "Vec2.h"
#include "Vec3.h"
#include "Vec4.h"

Go to the source code of this file.

Classes

struct  tgx::Mat4< T >
 Generic 4x4 matrix [specializations fMat4, dMat4]. More...
 

Typedefs

typedef Mat4< float > tgx::fMat4
 4x4 matrix with single (float) precision
 
typedef Mat4< double > tgx::dMat4
 4x4 matrix with double precision
 

Functions

template<typename T >
Mat4< T > tgx::operator* (const Mat4< T > &A, const Mat4< T > &B)
 Matrix-matrix multiplication.
 
template<typename T >
TGX_INLINE Vec4< T > tgx::operator* (const Mat4< T > &M, const Vec4< T > V)
 Matrix-vector multiplication.
 
template<typename T >
Mat4< T > tgx::operator* (T a, const Mat4< T > &m)
 Scalar-matrix multiplication.
 

Detailed Description

4x4 matrix class.