pub fn distance(&self, b: &Point) -> (f32, f32, f32) {
        unsafe {
            let mut x_distance = mem::MaybeUninit::uninit();
            let mut y_distance = mem::MaybeUninit::uninit();
            let ret = ffi::clutter_point_distance(
                self.to_glib_none().0,
                b.to_glib_none().0,
                x_distance.as_mut_ptr(),
                y_distance.as_mut_ptr(),
            );
            let x_distance = x_distance.assume_init();
            let y_distance = y_distance.assume_init();
            (ret, x_distance, y_distance)
        }
    }
/// Computes the distance between two `Point`.
/// ## `b`
/// a `Point`
/// ## `x_distance`
/// return location for the horizontal
///  distance between the points
/// ## `y_distance`
/// return location for the vertical
///  distance between the points
///
/// # Returns
///
/// the distance between the points.
Computes the distance between two `Point`.
Computes the distance between two ` Point ` .
pub fn distance(&self, b: &Point) -> (f32, f32, f32) {
        unsafe {
            let mut x_distance = mem::MaybeUninit::uninit();
            let mut y_distance = mem::MaybeUninit::uninit();
            let ret = ffi::clutter_point_distance(
                self.to_glib_none().0,
                b.to_glib_none().0,
                x_distance.as_mut_ptr(),
                y_distance.as_mut_ptr(),
            );
            let x_distance = x_distance.assume_init();
            let y_distance = y_distance.assume_init();
            (ret, x_distance, y_distance)
        }
    }
pub fn distance ( & self , b : & Point ) -> ( f32 , f32 , f32 ) { unsafe { let mut x_distance = mem :: MaybeUninit :: uninit ( ) ; let mut y_distance = mem :: MaybeUninit :: uninit ( ) ; let ret = ffi :: clutter_point_distance ( self . to_glib_none ( ) . 0 , b . to_glib_none ( ) . 0 , x_distance . as_mut_ptr ( ) , y_distance . as_mut_ptr ( ) , ) ; let x_distance = x_distance . assume_init ( ) ; let y_distance = y_distance . assume_init ( ) ; ( ret , x_distance , y_distance ) } }
Computes the distance between two `Point`.
Computes the distance between two ` Point ` .
the distance between the points.
the distance between the points .
&self
b
&Point
`b`
None
`x_distance`
return location for the horizontal
distance between the points
return location for the horizontal distance between the points
`y_distance`
return location for the vertical
distance between the points
return location for the vertical distance between the points