com.flowtick.graphs
line segment intersection adapted from https://www.codeproject.com/tips/862988/find-the-intersection-point-of-two-line-segments