Skip to content

Line-to draws differently after swapping points #1409

@muzimuzhi

Description

@muzimuzhi

Brief outline of the bug

In #1407 (comment), @cfr42 found that

\draw (a) -- ([shift={(-500mm,-500mm)}]b);

and

\draw ([shift={(-500mm,-500mm)}]b) -- (a);

draws differently.

The \draw ([shift={(-500mm,-500mm)}]b) -- (a); uses a different end point.

Minimal working example (MWE)

\documentclass[tikz,border=4pt]{standalone}

\begin{document}

\begin{tikzpicture}[draw opacity=.3]
  \node [circle,draw] (a) at (0,0) {A};
  \node [circle,draw] (b) at (1,1) {B};

  \draw[line width=10pt] (a) -- (b);
  \draw[red, line width=7pt] (a) -- ([shift={(-500mm,-500mm)}]b);
  \draw[blue, line width=3pt] ([shift={(-500mm,-500mm)}]b) -- (a);
\end{tikzpicture}

\end{document}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions