Add ivec2 files

This commit is contained in:
Christopher Lang
2022-05-16 22:41:04 +01:00
parent f7f0f66193
commit 4c85b970a9
9 changed files with 108 additions and 0 deletions

31
include/cglm/ivec2.h Normal file
View File

@@ -0,0 +1,31 @@
/*
* 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_ivec2(int * __restrict v, ivec2 dest)
*/
#ifndef cglm_ivec2_h
#define cglm_ivec2_h
#include "common.h"
/*!
* @brief init ivec2 using another vector
*
* @param[in] v a vector
* @param[out] dest destination
*/
CGLM_INLINE
void
glm_ivec2(int * __restrict v, ivec2 dest) {
dest[0] = v[0];
dest[1] = v[1];
}
#endif /* cglm_ivec2_h */