mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
26 lines
387 B
C
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 */
|