11 #include <util/space/Vector.h> 72 if (cosTheta > 1.0) cosTheta = 1.0;
73 if (cosTheta < -1.0) cosTheta = -1.0;
A Vector is a Cartesian vector.
A Bend calculates the angle between two vectors.
double dot(const Vector &v) const
Return dot product of this vector and vector v.
Classes used by all simpatico molecular simulations.
Utility classes for scientific computation.
double sinTheta() const
Return value of sin(theta) for precomputed cos(theta).
void computeAngle(const Vector &b1, const Vector &b2)
Compute cosTheta.
double cosTheta
Cosine of angle between vectors b1 and b2.
double square() const
Return square magnitude of this vector.
double theta() const
Return value of theta in radians for precomputed cos(theta).