pub type Coord3 = [f64; 3];
Expand description
Three-dimensional Cartesian coordinates
return the distance to other point
return the angle between three points: p0(self), p1, p2
return the torsion angle from four points: p0(self), p1, p2, p3
The dihedral measures the rotation around p1-p2
p0––>p1
p2––>p3
The dihedral angle is restricted to the range -π <= x <= π.
http://stackoverflow.com/a/34245697