[CpmlLine] Implemented cpml_line_length()
commit672e571aa8648647dd577c4e864d5d55f9425ece
authorNicola Fontana <ntd@entidi.it>
Sun, 28 Jun 2009 18:58:53 +0000 (28 20:58 +0200)
committerNicola Fontana <ntd@entidi.it>
Sun, 28 Jun 2009 18:58:53 +0000 (28 20:58 +0200)
tree990c15f393c04569da022e13b36f38c588a2eefe
parent3b18ce2ba3d23788193398bce97fa64563fd888a
[CpmlLine] Implemented cpml_line_length()

Implemented the length computation of straight lines, being it the
distance between the start and end points. To access the end point,
the cpml_primitive_get_point(line, -1) call is used: the -1 value
let this function be used also in the CAIRO_PATH_CLOSE_PATH case.
cpml/cpml-line.c
cpml/cpml-line.h