28

I want to draw a line from node A half-way to node B in TiKZ. How can I find express the end point?

Tim N
  • 10,219
  • 13
  • 63
  • 88

1 Answers1

47

Use

\usetikzlibrary{calc}

and then

($ (A) !.5! (B) $)

to get the middle between node A and B.

Martin Scharrer
  • 262,582