Function cif::mm::distance_squared

Function Documentation

inline float cif::mm::distance_squared(const atom &a, const atom &b)

Calculate the square of the distance between atoms and b in ångström

Note

Use this whenever possible instead of simply using distance since this function does not have to calculate a square root which is expensive.