You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
\ifpgf@intersect@sort%\pgf@intersect@solution@candidate% <-- add this line\pgf@xc=\pgf@x%\pgf@yc=\pgf@y%\pgf@process{\pgfpointdiff{\pgfpoint@intersect@start@a}{\pgfpoint@intersect@end@a}}%\edef\pgf@marshal{%\noexpand\pgfmathveclen@{\pgfmath@tonumber{\pgf@x}}{\pgfmath@tonumber{\pgf@y}}% <-- this line is modified
}%\pgf@marshal%
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
pgf/tex/generic/pgf/libraries/pgflibraryintersections.code.tex
Lines 357 to 370 in 5e2f4a8
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.
The text was updated successfully, but these errors were encountered: