Distanceable scalar implementation