Bash Intersecting Lines Geometry