
で定義されている次の各演算子の使用方法を説明するドキュメントが見つかりませんpst-tools
。
実用的な例を挙げていただけますか(ベクトル加算の簡略化など)
\pnode(2,2){A}
\pscircle(A){2}
\pstVerb{/xyxyadd {3 2 roll add 3 1 roll add exch} bind def}%
\pnode(!2 60 PtoC N-A.x N-A.y xyxyadd){B}
それは、各演算子について ) に等しいのでしょう\nodexn{(A)+(2;60)}{B}
か\pnode(2,2){A}
? 与えられた答えは、ほとんどの人にとって役立つと思います。
編集:
実際のシナリオは、複素数の加算を適用して方法5と方法6を簡略化することです。次の答え。
答え1
cxadd
コマンドラインで gs を使用するだけの (複素数の加算)の例。
$ gs
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>(/usr/local/texlive/2012/texmf-dist/dvips/pst-tools/pst-tools.pro)run
GS>[2 2] [2 60] cxadd ==
[4 62]
GS>