Skip to main content

Module distance

Module distance 

Source
Expand description

Distance and interpolation helpers for 2D points.

Functionsยง

distance_2d
Returns the Euclidean distance between two 2D points.
distance_squared_2d
Returns the squared Euclidean distance between two 2D points.
midpoint_2d
Returns the midpoint between two 2D points.