postion.py: class bearing.calc_constraints().