[pstricks] Calculer distances entre nœuds avec Pstricks

Michael Sharpe msharpe at ucsd.edu
Wed Sep 3 20:05:41 CEST 2008


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}

Michael

On Sep 3, 2008, at 9:03 AM, Herbert Voss wrote:

> agodemar schrieb:
>
>> Thank you for this code above, but I think you understand now that my
>> problem
>> is a little bit more general: I would like to measure things coming
>> from outside
>> using psfrag and pstricks (and fp if necessary).
>
> there is an easy but not short solution, you have to rewrite
> the existing macros:
>
> \psArc[options]{arrows}(center)(node B for radius A-B){alpha}{beta}
>
> [options] and {arrows} are both optional.




More information about the PSTricks mailing list