Logo Search packages:      
Sourcecode: inkscape version File versions

Geom::Point sp_canvas_window_to_world ( SPCanvas const *  canvas,
Geom::Point const   win 
)

Converts point from win to world coordinates.

Definition at line 2274 of file sp-canvas.cpp.

{
    g_assert (canvas != NULL);
    g_assert (SP_IS_CANVAS (canvas));

    return Geom::Point(canvas->x0 + win[0], canvas->y0 + win[1]);
}


Generated by  Doxygen 1.6.0   Back to index