#include <cassert>
#include <cmath>
#include <iostream>
#include <cstring>
#include <array>
#include "glm/glm.hpp"
Go to the source code of this file.
|
| typedef vec2_T< float > | vec2 |
| |
| typedef vec3_T< float > | vec3 |
| |
| typedef vec4_T< float > | vec4 |
| |
| typedef mat< float, 4, 4 > | mat4f |
| |
| typedef mat< float, 3, 3 > | mat3f |
| |
| typedef mat< double, 4, 4 > | mat4d |
| |
| typedef mat< double, 3, 3 > | mat3d |
| |
| typedef mat< int, 4, 4 > | mat4i |
| |
| typedef mat< int, 3, 3 > | mat3i |
| |
| typedef mat< unsigned int, 4, 4 > | mat4u |
| |
| typedef mat< unsigned int, 3, 3 > | mat3u |
| |
|
| template<class Type , size_t x1, size_t y1, size_t x2> |
| mat< Type, x2, y1 > | operator* (const mat< Type, x1, y1 > &first, const mat< Type, x2, x1 > &second) |
| | operator overload for matrix multiplication. More...
|
| |
| template<class Type > |
| mat< Type, 4, 4 > | operator* (const mat< Type, 4, 4 > &first, const mat< Type, 4, 4 > &second) |
| | operator overload for matrix multiplication (specialized for mat4). More...
|
| |
| template<class Type > |
| vec3_T< Type > | operator* (const mat< Type, 4, 4 > &mat, const vec3_T< Type > &in) |
| | operator overload for mat4 multiplication with vec3 . More...
|
| |
| template<class Type > |
| vec3_T< Type > | operator* (const mat< Type, 3, 3 > &mat, const vec3_T< Type > &in) |
| | operator overload for mat3 multiplication with vec3. More...
|
| |
| template<class Type > |
| vec4_T< Type > | operator* (const mat< Type, 4, 4 > &mat, const vec4_T< Type > &in) |
| | operator overload for mat4 multiplication with vec4. More...
|
| |
|
| constexpr float | radian = 3.14159265f / 180.f |
| |
| constexpr float | epsilon = 1e-4f |
| |
| constexpr float | pi = 3.14159265f |
| |
◆ mat3d
◆ mat3f
◆ mat3i
◆ mat3u
◆ mat4d
◆ mat4f
◆ mat4i
◆ mat4u
◆ vec2
◆ vec3
◆ vec4
◆ operator*() [1/5]
template<class Type >
| vec3_T< Type > operator* |
( |
const mat< Type, 3, 3 > & |
mat, |
|
|
const vec3_T< Type > & |
in |
|
) |
| |
operator overload for mat3 multiplication with vec3.
Definition at line 731 of file maths.h.
◆ operator*() [2/5]
template<class Type >
| mat< Type, 4, 4 > operator* |
( |
const mat< Type, 4, 4 > & |
first, |
|
|
const mat< Type, 4, 4 > & |
second |
|
) |
| |
operator overload for matrix multiplication (specialized for mat4).
Definition at line 697 of file maths.h.
◆ operator*() [3/5]
template<class Type >
| vec3_T< Type > operator* |
( |
const mat< Type, 4, 4 > & |
mat, |
|
|
const vec3_T< Type > & |
in |
|
) |
| |
operator overload for mat4 multiplication with vec3 .
Definition at line 720 of file maths.h.
◆ operator*() [4/5]
template<class Type >
| vec4_T< Type > operator* |
( |
const mat< Type, 4, 4 > & |
mat, |
|
|
const vec4_T< Type > & |
in |
|
) |
| |
operator overload for mat4 multiplication with vec4.
Definition at line 742 of file maths.h.
◆ operator*() [5/5]
template<class Type , size_t x1, size_t y1, size_t x2>
| mat< Type, x2, y1 > operator* |
( |
const mat< Type, x1, y1 > & |
first, |
|
|
const mat< Type, x2, x1 > & |
second |
|
) |
| |
operator overload for matrix multiplication.
Definition at line 680 of file maths.h.
◆ epsilon
| constexpr float epsilon = 1e-4f |
|
constexpr |
◆ pi
| constexpr float pi = 3.14159265f |
|
constexpr |
◆ radian
| constexpr float radian = 3.14159265f / 180.f |
|
constexpr |