[cairo] Finding minimum distance to a stroke or fill

Ashwin Bharambe ashwinb at gmail.com
Fri Feb 11 13:22:58 PST 2005


Hi,

I know that cairo_in_stroke (cairo_in_fill) would answer me if a point
P was inside the stroke (fill), respectively. However, how would I go
about finding the distance of the point in the stroke/fill which is
closest to a certain point P?

Thanks,
Ashwin

PS: Oh, and I would really be happy if somebody answered this one. I
think this is definitely not very elementary. :)



More information about the cairo mailing list