lineAtPoint implementation


#1

It mentions in the book on page 254 there are better ways to implement this method, but this is used due to it’s simplicity. I’m curious what the other ways to implement this functionality are, anyone have an idea?