mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Add additional functions for ivec2 and ivec3
This commit is contained in:
36
src/ivec3.c
36
src/ivec3.c
@@ -32,6 +32,24 @@ glmc_ivec3_one(ivec3 v) {
|
||||
glm_ivec3_one(v);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
int
|
||||
glmc_ivec3_dot(ivec3 a, ivec3 b) {
|
||||
return glm_ivec3_dot(a, b);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
int
|
||||
glmc_ivec3_norm2(ivec3 v) {
|
||||
return glm_ivec3_norm2(v);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
int
|
||||
glmc_ivec3_norm(ivec3 v) {
|
||||
return glm_ivec3_norm(v);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec3_add(ivec3 a, ivec3 b, ivec3 dest) {
|
||||
@@ -68,6 +86,24 @@ glmc_ivec3_scale(ivec3 v, int s, ivec3 dest) {
|
||||
glm_ivec3_scale(v, s, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec3_div(ivec3 a, ivec3 b, ivec3 dest) {
|
||||
glm_ivec3_div(a, b, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec3_divs(ivec3 v, int s, ivec3 dest) {
|
||||
glm_ivec3_divs(v, s, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec3_mod(ivec3 a, ivec3 b, ivec3 dest) {
|
||||
glm_ivec3_mod(a, b, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_ivec3_addadd(ivec3 a, ivec3 b, ivec3 dest) {
|
||||
|
||||
Reference in New Issue
Block a user