All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
PLMD::Angle Class Reference

Class to compute angles. More...

#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

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

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.


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