[pstricks] Calculer distances entre noeuds avec Pstricks

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Sep 3 20:16:00 CEST 2008

Michael Sharpe schrieb:
> There's another way that takes advantage of the fact that the radii  
> arguments in \psellipticarc are delimited by ( ) so that they may be  
> specified using Postscript code.
> \pnode(1,1){P}\pnode(3,2){Q}
> \psdot(P)\psdot(Q)\uput[0](Q){Q}\uput[210](P){P}
> \def\AtoB(#1)(#2)#3{\psLCNode(#1){-1}(#2){1}{#3}}
> \AtoB(Q)(P){R}% length of R gives radius
> \psellipticarc(Q)(! \psGetNodeCenter{R} R.x R.y Pyth dup){215}{-40}

a very good idea!


More information about the PSTricks mailing list