mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
vec: use _negate
instead of _flipsign
and _inv
This commit is contained in:
@@ -481,7 +481,7 @@ glm_vec_negate(vec3 v) {
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_vec_inv(vec3 v) {
|
||||
glm_vec_flipsign(v);
|
||||
glm_vec_negate(v);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -493,7 +493,7 @@ glm_vec_inv(vec3 v) {
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_vec_inv_to(vec3 v, vec3 dest) {
|
||||
glm_vec_flipsign_to(v, dest);
|
||||
glm_vec_negate_to(v, dest);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user