Does anyone have an example of code working with half-planes? In particular, by the equation of the straight line ax + by + c = 0 , which defines a half-plane in which ax + by + c> = 0 is unique. I just need a way to do this, my work just got confused, I processed all possible slopes of the straight line (or rather, the ranges), and there was a terrible amount of code.
Or if it's easier then help with this task - https://www.e-olymp.com/ru/problems/2960 . (Conceptually, I perfectly understand what they want from me). I wrote a preschool account, but when it comes to working with the most direct, and how to understand which half-plane in me is processed purely at the implementation level, I cannot think of it. It is sure, there some very short and simple code, but not those 12 if-s, with enclosures which I made. Once again, I do not ask for me to solve it, I want to see an example of implementation, because I myself do not have enough sense to do it, only for a complete analysis of cases. (I understand the code in js, c #, c ++, python, php)