When we add [x={(3,0)}]
to the example of the manual the pic text
of the right angle
is displaced :
\tikz[x={(3,0)}] \draw (1,0,0) coordinate (A) -- (0,0,0) coordinate (B) -- (0,0,1) coordinate (C) (B) -- (0,1,0) coordinate (D) pic [fill=gray,angle radius=4mm] {right angle = A--B--C} pic [draw,red,thick,angle eccentricity=.5,pic text=.] {right angle = A--B--D};
The reason for this, I don't know why, even if I'm the author of this code, is the sqrt(1/2)
on line 66 of tikzlibraryangles.code.tex.
The strange thing is that it works when there is no slanted transformation. Logicaly the value should be sqrt(2)
and not sqrt(1/2)
!
Anyway, the correction of this bug is simple, everithing is ok if we replace sqrt(1/2)
by the real value of sqrt(2)
which is (up to 7 digits) 1.4142135
. I'll make a pull request.
See https://github.com/pgf-tikz/pgf/issues/522