Create line extensions for given line created by user
问题 I've been working in an app which I have to capture user's touches and draw a line on the screen. This is working so far. The problem is that I'd like to create some kind of extension for that line that goes from the line start/end to the screen boundaries. It's important to that extension be aligned to the main line. I've been trying to accomplish this for some days but without positive results. My idea was to use some kind of linear equation to represent the line and after create two point