bis_protein_structure.TORSION2.new_dihedral

bis_protein_structure.TORSION2.new_dihedral(p)[source]

Calculate the dihedral angle between four points.

Parameters:

p (np.ndarray) – An array of shape (4, 3) representing the coordinates of the four points.

Returns:

The dihedral angle in degrees between the planes formed by the points.

Return type:

float