I need to draw in line in intersection with another one like this :
I was thinking about using [near start] and use nodes :
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[label=above:A] (A) at (0,1) {$\bullet$};
\node[label=above:B] (B) at (1,0) {$\bullet$};
\node[label=above:C] (C) at (1,1) {$\bullet$};
\draw (A) -- (B) node[near start=1cm, below] {D} node[near start=1cm] {$\bullet$};
\end{tikzpicture}
\end{document}
Or with coordinates, which is cleaner :
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,1);
\draw (A) node[above] {A} node {$\bullet$};
\coordinate (B) at (1,0);
\draw (B) node[above] {B} node {$\bullet$};
\coordinate (C) at (1,1);
\draw (C) node[above] {C} node {$\bullet$};
\draw (A) -- (B) node[near start=1cm, below] {D} node[near start=1cm] {$\bullet$};
\end{tikzpicture}
\end{document}
I have placed the label D, but I can use it anymore to draw the line (DC). Someone has an idea ?
Edit : [near start] is like [pos=0.25], i think it's a better way to place the node