Small conversion tool to calculate the orthodromic and loxodromic cap