///
/// Creates a transformation matrix, *trans,* that maps a unit square
/// to a four-sided polygon, *quad.* Returns `true` if the transformation
/// is constructed or false if such a transformation does not exist.
///
/// **See also:** [`quad_to_square()`]
/// [`quad_to_quad()`]
Creates a transformation matrix, *trans,* that maps a unit square
to a four-sided polygon, *quad.* Returns `true` if the transformation
is constructed or false if such a transformation does not exist.


Creates a transformation matrix * trans * that maps a unit square to a four - sided polygon * quad . * Returns ` true ` if the transformation is constructed or false if such a transformation does not exist .
pub fn square_to_quad<P: PolygonFTrait<'a>, T: TransformTrait<'a>>(
        square: &P,
        result: &T,
    ) -> bool {
        let (obj_square_1, _funcs) = square.get_polygon_f_obj_funcs();
        let (obj_result_2, _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).square_to_quad)(obj_data, obj_square_1, obj_result_2);
            ret_val
        }
    }
pub fn square_to_quad < P : PolygonFTrait < ' a > , T : TransformTrait < ' a > > ( square : & P , result : & T , ) -> bool { let ( obj_square_1 , _funcs ) = square . get_polygon_f_obj_funcs ( ) ; let ( obj_result_2 , _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 ) . square_to_quad ) ( obj_data , obj_square_1 , obj_result_2 ) ; ret_val } }
Creates a transformation matrix, *trans,* that maps a unit square
to a four-sided polygon, *quad.
Creates a transformation matrix * trans * that maps a unit square to a four - sided polygon * quad .
square
&P
result
&T