Graphics, Figures & Tables ⇒ PSTricks: Distance between 2 nodes
PSTricks: Distance between 2 nodes
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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- 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