https://primanota.net/transit/cutting-corners-chords.htm