[CpmlPrimitive] Implemented cpml_primitive_near_pos()
commitb3c5937e70e34bb1bf7c944ad7cee20a26431287
authorNicola Fontana <ntd@entidi.it>
Fri, 3 Jul 2009 22:52:37 +0000 (4 00:52 +0200)
committerNicola Fontana <ntd@entidi.it>
Fri, 3 Jul 2009 22:52:37 +0000 (4 00:52 +0200)
tree02e44db952c78c1c9ab6f89d3904ab4aaba4f07f
parent57548e3eddb3ba1017593657c89a30196086a07c
[CpmlPrimitive] Implemented cpml_primitive_near_pos()

The new API gets the pos value of the point on the primitive nearest
to a given point.

The "pos" value is a kind of percentage on the primitive referred
to its length: 0 is the starting point, 0.5 the mid point and 1 the
end point and so on.
cpml/cpml-primitive.c
cpml/cpml-primitive.h