In geometry, the distance between two points "A" and "B" is sometimes written as formula_1. Pythagorean theorem is often used in the calculation of distance. Distance is a scalar, and thus is different from displacement. Displacement is a vector that measures distance with a straight line (and in only one path). Displacement is the shortest way to travel the distance.