#3 factor out duplicate code used to compute the arrow tip