postion.py: class halfplane calculates inequalities correctly.