add distance scalar function

on earth?