[CPML] Implemented the extents infrastructure
commit4db20d07cffef9412b498f7d6ba4c55fc80c79fa
authorNicola Fontana <ntd@entidi.it>
Fri, 9 Oct 2009 13:24:34 +0000 (9 15:24 +0200)
committerNicola Fontana <ntd@entidi.it>
Fri, 9 Oct 2009 13:24:34 +0000 (9 15:24 +0200)
treeda22d067970499c60d4d3e0aafce5323ccbca65a
parent0eb1217011fb11efab9768b20c0d563c5dd24985
[CPML] Implemented the extents infrastructure

Added the extents function to every primitive type. Usually, calculating
the extents of a primitive is quite trivial (just add the pairs to an
initially undefined extents throught cpml_extents_pair_add()), but the
most complex primitive to be managed is the arc.

Regardling the Bézier curve, the control points are added as is: the
control poligon always contains all the Bézier curve but the result
could be more than what expected.
12 files changed:
cpml/cpml-arc.c
cpml/cpml-arc.h
cpml/cpml-curve.c
cpml/cpml-curve.h
cpml/cpml-line.c
cpml/cpml-line.h
cpml/cpml-pair.c
cpml/cpml-pair.h
cpml/cpml-primitive.c
cpml/cpml-primitive.h
cpml/cpml-segment.c
cpml/cpml-segment.h