pub fn distance_between_points(point_a: &[f64; 2], point_b: &[f64; 2]) -> f64
Expand description

Calculates the distance between two points.

Examples

assert_eq!(
    kcl_lib::std::utils::distance_between_points(&[0.0, 0.0], &[0.0, 5.0]),
    5.0
);
assert_eq!(
    kcl_lib::std::utils::distance_between_points(&[0.0, 0.0], &[3.0, 4.0]),
    5.0
);