1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/// Returns the signed difference between the x2 and x1 coordinate /// /// # Arguments /// * `x2` - The x coordinate of the final/end point. /// * `x1` - The x coordinate of the start/initial point. /// /// # Examples /// ``` /// use ralgeb::utils::delta_coord; /// let (x1, x2) = (20., 10.); /// delta_coord(x2, x1); ///``` /// pub fn delta_coord(x2: f64, x1: f64) -> f64 { x2 - x1 }