MCPcopy Create free account
hub / github.com/ActiveState/code / _sub

Function _sub

recipes/Python/502252_Physics/recipe-502252.py:126–129  ·  view source on GitHub ↗

Private module function.

(angle_a, angle_b)

Source from the content-addressed store, hash-verified

124 return _math.atan2(vector.x, vector.y) % _PI_M_2
125
126def _sub(angle_a, angle_b):
127 'Private module function.'
128 diff = abs(angle_a - angle_b)
129 return _PI_M_2 - diff if diff > _math.pi else diff
130
131################################################################################
132

Callers 1

crashMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected