pub fn calc_distance(x1: f64, y1: f64, x2: f64, y2: f64) -> f64
Euclidean distance between two points.