sanyaade-g2g-repos / quimeraengine

Automatically exported from code.google.com/p/quimeraengine
0 stars 1 forks source link

Renombrar Reverse por Invert #246

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Se trata de renombar los métodos llamados Reverse por Invert, que es un 
término mucho más utilizado. Esto sólo aplica a Math.

Original issue reported on code.google.com by Lince3D@gmail.com on 21 Feb 2012 at 9:03

GoogleCodeExporter commented 8 years ago

Original comment by Lince3D@gmail.com on 27 Feb 2012 at 11:30

GoogleCodeExporter commented 8 years ago

Original comment by Lince3D@gmail.com on 27 Feb 2012 at 11:45

GoogleCodeExporter commented 8 years ago
Hay un par de métodos en qquaternion.h, que pones reversed en la docu, no se 
si es consciente o no:
[quote]/// <summary>
    /// Calculates the quaternion's inverse.<br>
    /// Note that, when the quaternion is normalized, the inverse coincides with the conjugate (which is cheaper to calculate).<br>
    /// Quaternion inverse is obtained by the following equation:
    ///
    /// \f$ Q^{-1} = \frac{w - xi - yj - zk}{\left|Q\right|^2}\f$
    /// </summary>
    /// <returns>
    /// The reversed quaternion.
    /// </returns>[/quote]

En este método, en qquaternion.cpp
[code]QQuaternion QQuaternion::operator/(const QBaseQuaternion &qQuat) const
{
    return *this * qQuat.As<const QQuaternion>().Reverse();
}[/code]

Por lo demás correcto, lo pongo en DONE

Original comment by jwl...@gmail.com on 17 Apr 2012 at 2:32