[AdgEdges] Added the "axis-angle" property
commit73b4e366c90ac02380cc53f3d5cf4f0be6594314
authorNicola Fontana <ntd@entidi.it>
Sat, 19 Mar 2011 20:52:51 +0000 (19 21:52 +0100)
committerNicola Fontana <ntd@entidi.it>
Sat, 19 Mar 2011 20:52:51 +0000 (19 21:52 +0100)
treeb71c45050a2754fa904c72b6912733b9edf1e4fd
parent6cfae167aba2f630e5fb1b747afee89fa8956243
[AdgEdges] Added the "axis-angle" property

Allow a custom axis for edge lines. This custom axis must pass through
the origin (0,0) but has a custom slope defined by the new
AdgEdges:axis-angle property.

The corners data are transformed before the computation to transform
this axis to y=0, so the old algorithm is still valid. After the
CpmlPath containing the lines is returned, the inverse of the original
transformation is applied to every coordinate to move the points to
their original position.
src/adg/adg-edges-private.h
src/adg/adg-edges.c
src/adg/adg-edges.h
src/adg/tests/test-edges.c