Open QJLc opened 5 years ago
Could you please
Thanks. I have improved it.
The pgfplots library has such a functionality in the sense that it allows one to decompose the path into intersection segments. There is also \pgfintersectiongetsolutiontime, but it does not give the time in the sense of a percentage at which the intersection is located. See also https://tex.stackexchange.com/q/432532.
The lines
https://github.com/pgf-tikz/pgf/blob/5e2f4a884cc0886fbce3f063f5b6705dfff37a89/tex/generic/pgf/libraries/pgflibraryintersections.code.tex#L357-L370
are used to define
\pgf@intersect@time@a
. I think that, the\pgf@x
and\pgf@y
in lines 364 and 365, could be coordinates of current intersection point, but their value may be modified by\pgf@ifsolution@duplicate
in line 357.The line 366 gets the vector "start--end", stored in
\pgf@x
and\pgf@y
, the line 368 gets the length of "start--end", so, the line 368 could be modified.A possible modification starting from line 363 would be:
I tried this:
And output numbers are:
These may be expected.