summaryrefslogtreecommitdiff
path: root/include/cglm/call/ivec2.h
blob: 82f70ebfd92912184ef8de2129cc03bba3ef3358 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/*
 * Copyright (c), Recep Aslantas.
 *
 * MIT License (MIT), http://opensource.org/licenses/MIT
 * Full license can be found in the LICENSE file
 */

#ifndef cglmc_ivec2_h
#define cglmc_ivec2_h
#ifdef __cplusplus
extern "C" {
#endif

#include "../cglm.h"

CGLM_EXPORT
void
glmc_ivec2(int * __restrict v, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_copy(ivec2 a, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_zero(ivec2 v);

CGLM_EXPORT
void
glmc_ivec2_one(ivec2 v);

CGLM_EXPORT
int
glmc_ivec2_dot(ivec2 a, ivec2 b);

CGLM_EXPORT
int
glmc_ivec2_cross(ivec2 a, ivec2 b);

CGLM_EXPORT
void
glmc_ivec2_add(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_adds(ivec2 v, int s, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_sub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_subs(ivec2 v, int s, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_mul(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_scale(ivec2 v, int s, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_div(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_divs(ivec2 v, int s, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_mod(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_addadd(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_addadds(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_subadd(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_subadds(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_muladd(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_muladds(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_maxadd(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_minadd(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_subsub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_subsubs(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_addsub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_addsubs(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_mulsub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_mulsubs(ivec2 a, int s, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_maxsub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT 
void 
glmc_ivec2_minsub(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
int
glmc_ivec2_distance2(ivec2 a, ivec2 b);

CGLM_EXPORT
float
glmc_ivec2_distance(ivec2 a, ivec2 b);

CGLM_EXPORT
void
glmc_ivec2_fill(ivec2 v, int val);

CGLM_EXPORT
bool
glmc_ivec2_eq(ivec2 v, int val);

CGLM_EXPORT
bool
glmc_ivec2_eqv(ivec2 a, ivec2 b);

CGLM_EXPORT
void
glmc_ivec2_maxv(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_minv(ivec2 a, ivec2 b, ivec2 dest);

CGLM_EXPORT
void
glmc_ivec2_clamp(ivec2 v, int minVal, int maxVal);

CGLM_EXPORT
void
glmc_ivec2_abs(ivec2 v, ivec2 dest);

#ifdef __cplusplus
}
#endif
#endif /* cglmc_ivec2_h */