stko.calculate_dihedral

stko.calculate_dihedral(pt1, pt2, pt3, pt4)[source]

Calculate the dihedral between four points in degrees.

Uses Praxeolitic formula –> 1 sqrt, 1 cross product Output in range (-180 to 180).

From: https://stackoverflow.com/a/34245697

Parameters:
Return type:

float