Hi,
I've been looking for a PSTricks macro that will return the distance between 2 nodes. I was also wondering if there's a macro that returns the coordinates of a node. Do either of these macros exist?
Graphics, Figures & Tables ⇒ PSTricks: Distance between 2 nodes
PSTricks: Distance between 2 nodes
Last edited by stretch65 on Sat Nov 13, 2010 5:23 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
PSTricks: Distance between 2 nodes
yes and no ...stretch65 wrote: I've been looking for a PSTricks macro that will return the distance between 2 nodes. I was also wondering if there's a macro that returns the coordinates of a node. Do either of these macros exist?
The node coordinates are known on PostScript side, but not on TeX.
It belongs to your problem, if all can be done on PostScript level.
For example:
\rput(! \psGetNodeCenter{A} A.x A.y 3 add){foo}
Herbert