Pythagorean theorem to calculate distance | ScratchStats