def _dihed_cos_low(a, b, c, deriv):
a = Vector3(<NUM_LIT:9>, deriv, a, (<NUM_LIT:0>, <NUM_LIT:1>, <NUM_LIT:2>))<EOL>b = Vector3(<NUM_LIT:9>, deriv, b, (<NUM_LIT:3>, <NUM_LIT:4>, <NUM_LIT:5>))<EOL>c = Vector3(<NUM_LIT:9>, deriv, c, (<NUM_LIT:6>, <NUM_LIT:7>, <NUM_LIT:8>))<EOL>b /= b.norm()<EOL>tmp = b.copy()<EOL>tmp *= dot(a, b)<EOL>a -= tmp<EOL>tmp = b.copy()<EOL>tmp *= dot(c, b)<EOL>c -= tmp<EOL>a /= a.norm()<EOL>c /= c.norm()<EOL>return dot(a, c).results()<EOL>
Similar to dihed_cos, but with relative vectors