#include <Angle.h>
Public Member Functions | |
double | compute (const Vector &v1, const Vector &v2) const |
Compute the angle between vectors v1 and v2. More... | |
double | compute (const Vector &v1, const Vector &v2, Vector &d1, Vector &d2) const |
Compute the angle between vectors v1 and v2 and its derivatives wrt v1 and v2. More... | |
Class to compute angles. I define it as a class even if it does not contain anything. The reason is that in the future I would like to extend it to contain options about how the calculation should be done. So, for now use it as Angle a; double angle=a.compute(v1,v2); I know it is a bit misleading. If we really do not need to store "options" inside the Angle class, we can remove it later and write compute as a static function.
Compute the angle between vectors v1 and v2.
double PLMD::Angle::compute | ( | const Vector & | v1, |
const Vector & | v2, | ||
Vector & | d1, | ||
Vector & | d2 | ||
) | const |
Compute the angle between vectors v1 and v2 and its derivatives wrt v1 and v2.
Hosted by GitHub | 1.8.17 |