qp.structure.convert_nhie_oxo.calculate_dihedral

qp.structure.convert_nhie_oxo.calculate_dihedral(p1, p2, p3, p4)[source]

Calculate the dihedral angle defined by four points.

Parameters:

p1, p2, p3, p4 (numpy.ndarray) – 3D coordinates of the four points.

Returns:

Dihedral angle in degrees.

Return type:

float