games logic based on closed shapesI prefer to use any library that performs all this under the hood and provides simple consumable APIs, rather than writing on my own. I am looking into Boost::Geometry, which more or less relates to my requirement.