philsupertramp/game-math
Loading...
Searching...
No Matches
include
math
math.h
Go to the documentation of this file.
1
8
#pragma once
9
10
#include "
Random.h
"
11
#include "
format.h
"
12
#include "
mat/mat2.h
"
13
#include "
mat/mat3.h
"
14
#include "
mat/mat4.h
"
15
#include "
utils.h
"
16
#include "
vec/vec2.h
"
17
#include "
vec/vec3.h
"
18
#include "
vec/vec4.h
"
19
23
using
vec2f
=
vec2<float>
;
27
using
vec2i
=
vec2<int>
;
31
using
vec2d
=
vec2<double>
;
32
36
using
vec3f
=
vec3<float>
;
40
using
vec3i
=
vec3<int>
;
44
using
vec3d
=
vec3<double>
;
45
49
struct
cmp_vec3i
{
56
bool
operator()
(
const
vec3i
& a,
const
vec3i
& b)
const
{
return
a.
x
== b.
x
&& a.
y
== b.
y
&& a.
z
== b.
z
; }
57
};
58
62
using
vec4f
=
vec4<float>
;
66
using
vec4i
=
vec4<int>
;
70
using
vec4d
=
vec4<double>
;
71
75
using
mat2f
=
mat2<float>
;
79
using
mat2i
=
mat2<int>
;
83
using
mat2d
=
mat2<double>
;
84
88
using
mat3f
=
mat3<float>
;
92
using
mat3i
=
mat3<int>
;
96
using
mat3d
=
mat3<double>
;
97
101
using
mat4f
=
mat4<float>
;
105
using
mat4i
=
mat4<int>
;
109
using
mat4d
=
mat4<double>
;
Random.h
format.h
mat2.h
mat3.h
mat4.h
cmp_vec3i
Definition:
math.h:49
cmp_vec3i::operator()
bool operator()(const vec3i &a, const vec3i &b) const
Definition:
math.h:56
mat2
Definition:
mat2.h:10
mat3
Definition:
mat3.h:10
mat4
Definition:
mat4.h:11
vec2
Definition:
vec2.h:11
vec3
Definition:
vec3.h:14
vec3::x
T x
Definition:
vec3.h:33
vec3::y
T y
Definition:
vec3.h:33
vec3::z
T z
Definition:
vec3.h:33
vec4
Definition:
vec4.h:11
utils.h
vec2.h
vec3.h
vec4.h
Generated by
1.9.5