vec: use _negate instead of _flipsign and _inv

* negate is better and common name, flipsign is deprecated now.
This commit is contained in:
Recep Aslantas
2018-11-28 10:28:00 +03:00
parent 89f64f0794
commit 463099350a
7 changed files with 91 additions and 15 deletions

View File

@@ -52,6 +52,8 @@ Functions:
#. :c:func:`glm_vec_muladds`
#. :c:func:`glm_vec_flipsign`
#. :c:func:`glm_vec_flipsign_to`
#. :c:func:`glm_vec_negate`
#. :c:func:`glm_vec_negate_to`
#. :c:func:`glm_vec_inv`
#. :c:func:`glm_vec_inv_to`
#. :c:func:`glm_vec_normalize`
@@ -281,6 +283,21 @@ Functions documentation
| *[in]* **v** vector
| *[out]* **dest** negated vector
.. c:function:: void glm_vec_negate(vec3 v)
negate vector components
Parameters:
| *[in, out]* **v** vector
.. c:function:: void glm_vec_negate_to(vec3 v, vec3 dest)
negate vector components and store result in dest
Parameters:
| *[in]* **v** vector
| *[out]* **dest** negated vector
.. c:function:: void glm_vec_inv(vec3 v)
make vector as inverse/opposite of itself