fn midpoint(point_1: &Point<i32>, point_2: &Point<i32>) -> Point<i32> {
    let mid_x = (point_1.x + point_2.x) / 2;
    let mid_y = (point_1.y + point_2.y) / 2;

    Point { x: mid_x, y: mid_y }
}
/// A function to find the midpoint of two points
A function to find the midpoint of two points
A function to find the midpoint of two points
fn midpoint(point_1: &Point<i32>, point_2: &Point<i32>) -> Point<i32> {
    let mid_x = (point_1.x + point_2.x) / 2;
    let mid_y = (point_1.y + point_2.y) / 2;
    Point { x: mid_x, y: mid_y }
}
fn midpoint ( point_1 : & Point < i32 > , point_2 : & Point < i32 > ) -> Point < i32 > { let mid_x = ( point_1 . x + point_2 . x ) / 2 ; let mid_y = ( point_1 . y + point_2 . y ) / 2 ; Point { x : mid_x , y : mid_y } }
A function to find the midpoint of two points
A function to find the midpoint of two points
point_1
&Point<i32>
point_2
&Point<i32>
point_1
&Point<i32>
point_2
&Point<i32>