Files
cglm/include/cglm-util.h
2016-10-16 16:05:46 +03:00

26 lines
387 B
C

/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#ifndef cglm_util_h
#define cglm_util_h
#include "cglm-common.h"
CGLM_INLINE
float
glm_rad(float deg) {
return deg * M_PI / 180.0f;
}
CGLM_INLINE
float
glm_deg(float rad) {
return rad * 180.0f / M_PI;
}
#endif /* cglm_util_h */