remove middle dots. also, rename distance function

Middle dots were a bad idea.
formulas are more explicit, but more visually cluttered
and actually harder to read.
Remove everywhere, for consistency.