This commit is contained in:
Recep Aslantas
2020-03-06 23:33:30 +03:00
2 changed files with 7 additions and 7 deletions

View File

@@ -455,18 +455,18 @@ glms_vec2_normalize(vec2s v) {
}
/*!
* @brief rotate vec2 around axis by angle using Rodrigues' rotation formula
* @brief rotate vec2 by angle using Rodrigues' rotation formula
*
* @param[in] v vector
* @param[in] axis axis vector (must be unit vector)
* @param[in] angle angle by radians
* @returns rotated vector
*/
CGLM_INLINE
vec2s
glms_vec2_rotate(vec2s v, float angle, vec2s axis) {
glm_vec2_rotate(v.raw, angle, axis.raw);
return v;
glms_vec2_rotate(vec2s v, float angle) {
vec2s r;
glm_vec2_rotate(v.raw, angle, r.raw);
return r;
}
/**