Calculates a dihedral angle.
pos (np.ndarray) – An array of 4x3 size where each row are the coordinates of an atom defining the dihedral angle
box (np.ndarray) – The size of the periodic box
angle – The angle in radians
float