///
/// Creates a transformation matrix, *trans,* that maps a four-sided
/// polygon, *one,* to another four-sided polygon, *two.*
/// Returns `true` if the transformation is possible; otherwise returns
/// false.
///
/// This is a convenience method combining quadToSquare() and
/// squareToQuad() methods. It allows the input quad to be
/// transformed into any other quad.
///
/// **See also:** [`square_to_quad()`]
/// [`quad_to_square()`]


This is a convenience method combining quadToSquare() and
squareToQuad() methods. It allows the input quad to be
transformed into any other quad.


This is a convenience method combining quadToSquare () and squareToQuad () methods . It allows the input quad to be transformed into any other quad .
pub fn quad_to_quad<P: PolygonFTrait<'a>, T: TransformTrait<'a>>(
        one: &P,
        two: &P,
        result: &T,
    ) -> bool {
        let (obj_one_1, _funcs) = one.get_polygon_f_obj_funcs();
        let (obj_two_2, _funcs) = two.get_polygon_f_obj_funcs();
        let (obj_result_3, _funcs) = result.get_transform_obj_funcs();
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_transform)(::std::ptr::null()).all_funcs).transform_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).quad_to_quad)(obj_data, obj_one_1, obj_two_2, obj_result_3);
            ret_val
        }
    }
pub fn quad_to_quad < P : PolygonFTrait < ' a > , T : TransformTrait < ' a > > ( one : & P , two : & P , result : & T , ) -> bool { let ( obj_one_1 , _funcs ) = one . get_polygon_f_obj_funcs ( ) ; let ( obj_two_2 , _funcs ) = two . get_polygon_f_obj_funcs ( ) ; let ( obj_result_3 , _funcs ) = result . get_transform_obj_funcs ( ) ; let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_transform ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . transform_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . quad_to_quad ) ( obj_data , obj_one_1 , obj_two_2 , obj_result_3 ) ; ret_val } }
Creates a transformation matrix, *trans,* that maps a four-sided
polygon, *one,* to another four-sided polygon, *two.
Creates a transformation matrix * trans * that maps a four - sided polygon * one * to another four - sided polygon * two .
one
&P
two
&P
result
&T