Found inside points. Prepared some math functions to check intersection.