[metapost] precision of division
Clément Hurlin
Clement.Hurlin at sophia.inria.fr
Thu Oct 12 09:04:46 CEST 2006
> Does what make sense?
I was just wondering if my suppositions about the loss of precision was right.
> Here is what I would do. Assuming that you really want the points
> q[$] := point $*length pt[1]/i of pt[1];
> I would save those times instead of the points:
> t[$] := $*length pt[1]/i;
> then if I need to fill a wedge, I would write:
> fill p3-- subpath(t[$],t[$+1]) of p --cycle;
This works, thanks.
Clément
More information about the metapost
mailing list