Distance formula and midpoint of a segment between two points.
KousKrab — interactive ML simulations in the browser.