Logo Search packages:      
Sourcecode: inkscape version File versions

Geom::Point sp_canvas_world_to_window ( SPCanvas const *  canvas,
Geom::Point const   world 
)

Converts point from world to win coordinates.

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

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

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


Generated by  Doxygen 1.6.0   Back to index