calc. dihedral