Aaaaahhhhhh! I wrote some code to solve this but stupidly forgot to check the fourth triangle because it needed slightly different treatment.
Thanks for posting your solution, it all makes sense now :)
You are viewing a single comment's thread from: