See https://www.reddit.com/r/rust/comments/1r00jsi/algorithmically_finding_the_longest_line_of_sight/o4h0vjk/