summaryrefslogtreecommitdiff
path: root/libs/cglm/src/affine2d.c
blob: 6e5913e99057ab92457b0221996a165f61b06a4a (plain)
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
/*
 * Copyright (c), Recep Aslantas.
 *
 * MIT License (MIT), http://opensource.org/licenses/MIT
 * Full license can be found in the LICENSE file
 */

#include "../include/cglm/cglm.h"
#include "../include/cglm/call.h"

CGLM_EXPORT
void
glmc_translate2d_make(mat3 m, vec2 v) {
  glm_translate2d_make(m, v);
}

CGLM_EXPORT
void
glmc_translate2d_to(mat3 m, vec2 v, mat3 dest) {
  glm_translate2d_to(m, v, dest);
}

CGLM_EXPORT
void
glmc_translate2d(mat3 m, vec2 v) {
  glm_translate2d(m, v);
}

CGLM_EXPORT
void
glmc_translate2d_x(mat3 m, float to) {
  glm_translate2d_x(m, to);
}

CGLM_EXPORT
void
glmc_translate2d_y(mat3 m, float to) {
  glm_translate2d_y(m, to);
}

CGLM_EXPORT
void
glmc_scale2d_to(mat3 m, vec2 v, mat3 dest) {
  glm_scale2d_to(m, v, dest);
}

CGLM_EXPORT
void
glmc_scale2d_make(mat3 m, vec2 v) {
  glm_scale2d_make(m, v);
}

CGLM_EXPORT
void
glmc_scale2d(mat3 m, vec2 v) {
  glm_scale2d(m, v);
}

CGLM_EXPORT
void
glmc_scale2d_uni(mat3 m, float s) {
  glm_scale2d_uni(m, s);
}

CGLM_EXPORT
void
glmc_rotate2d_make(mat3 m, float angle) {
  glm_rotate2d_make(m, angle);
}

CGLM_EXPORT
void
glmc_rotate2d(mat3 m, float angle) {
  glm_rotate2d(m, angle);
}

CGLM_EXPORT
void
glmc_rotate2d_to(mat3 m, float angle, mat3 dest) {
  glm_rotate2d_to(m, angle, dest);
}