Public Member Functions | List of all members
PLMD::Angle Class Reference

#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...
 

Detailed Description

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.

Member Function Documentation

◆ compute() [1/2]

double PLMD::Angle::compute ( const Vector v1,
const Vector v2 
) const

Compute the angle between vectors v1 and v2.

◆ compute() [2/2]

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.


The documentation for this class was generated from the following files: