struct bond::DirectedHydrogenBond#
One directed hydrogen bond. Indices are positions in the single cloud passed to directedHydrogenBonds. Angle is degrees, acceptor-first: the two vectors are the minimum image of acceptor minus donor and the minimum image of acceptor minus the hydrogen. A linear donor-hydrogen-acceptor geometry has angle 0.
#include <src/include/internal/bond.hpp>
struct DirectedHydrogenBond {
// fields
int donor = -1;
int hydrogen = -1;
int acceptor = -1;
double d_AH = 0.0;
double d_DA = 0.0;
double angle = 0.0;
};