[AdgADim] Corrected arc behavior
commit64c92d3824b1d19e7f92dd14cb7640a8b2ce4bca
authorNicola Fontana <ntd@entidi.it>
Sat, 26 Sep 2009 16:27:57 +0000 (26 18:27 +0200)
committerNicola Fontana <ntd@entidi.it>
Sat, 26 Sep 2009 16:27:57 +0000 (26 18:27 +0200)
tree14ba3fbbe0870ed2d1d21e7ac7fea8326092c1cb
parenta3cbf00e5c648e5c77729e3ae8c5b8111f9bda2b
[AdgADim] Corrected arc behavior

Code clean up: update_geometry() and update_shift() are now merged
togheter in update_geometry() as they share a lot of code. Split the
basic geometry stuff in get_info() (as once upon the time done for
CpmlArc) to not have a never-ending function.

The reverse arc problem was a distance of 0 (a not so remote case, as it
comes out whenever the pos reference is the center of the dimension):
added a minimum setting to avoid the 0 case... a quite naive approach
but working great.
adg/adg-adim-private.h
adg/adg-adim.c