Add ivec3 and ivec4 files

This commit is contained in:
Christopher Lang
2022-05-17 16:04:47 +01:00
parent ee09707c1c
commit d582146d9a
13 changed files with 213 additions and 0 deletions

32
include/cglm/ivec3.h Normal file
View File

@@ -0,0 +1,32 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
/*
FUNCTIONS:
CGLM_INLINE void glm_ivec3(int * __restrict v, ivec3 dest)
*/
#ifndef cglm_ivec3_h
#define cglm_ivec3_h
#include "common.h"
/*!
* @brief init ivec3 using another vector
*
* @param[in] v a vector
* @param[out] dest destination
*/
CGLM_INLINE
void
glm_ivec3(int * __restrict v, ivec3 dest) {
dest[0] = v[0];
dest[1] = v[1];
dest[2] = v[2];
}
#endif /* cglm_ivec3_h */