[AdgEntity] Added adg_entity_transform_{global,local}_map()
commitb996d809cba0ff558141d062be5ce29d9ef801f0
authorNicola Fontana <ntd@entidi.it>
Thu, 20 Aug 2009 01:13:47 +0000 (20 03:13 +0200)
committerNicola Fontana <ntd@entidi.it>
Thu, 20 Aug 2009 01:13:47 +0000 (20 03:13 +0200)
tree11414d9319735fa929ca521a07e96851cee01d09
parent24024faacf8b1affb00ee4806547ed340a8caaaf
[AdgEntity] Added adg_entity_transform_{global,local}_map()

Convenient functions to apply a transformation to the underlying map
without retrieving, transforming and setting with the need of an helper
matrix. Applying "transformation" to "entity" is roughly equivalent to:

AdgMatrix tmp_map;
adg_entity_get_{global,local}_map(entity, &tmp_map);
cairo_matrix_multiply(&tmp_map, transformation, &tmp_map);
adg_entity_set_{global,local}_map(entity, &tmp_map);
adg/adg-entity.c
adg/adg-entity.h