[CpmlArc] Added cpml_arc_length()
commitf1a066f4c112b3783d5a52a6a91badd8e956a312
authorNicola Fontana <ntd@entidi.it>
Sun, 28 Jun 2009 19:02:09 +0000 (28 21:02 +0200)
committerNicola Fontana <ntd@entidi.it>
Sun, 28 Jun 2009 19:02:09 +0000 (28 21:02 +0200)
tree8051e01ffb750a1683f9052c3ef9476da3095c9d
parent672e571aa8648647dd577c4e864d5d55f9425ece
[CpmlArc] Added cpml_arc_length()

Implemented the arc length computation. The algorithm is quite trivial:
the length is directly proportional to the angle delta of the arc and
the proportion is applied to the whole circumference:

length = delta / 2PI * circumference = delta * radius
cpml/cpml-arc.c
cpml/cpml-arc.h