views:

28

answers:

0

I'm making a flow-diagram like WPF app and I've drawn arrows between the centre point of my nodes, trouble is that I want the arrows to start and end on the edge of my nodes.

The solution is simple - shorten each of the arrows by 2X, where X is the "radius" of my nodes. I'm a mathematician by trade so I know how to do this using trig, but considering that WPF has a whole load of 2D / transformation functionality I wondered if there was a more "developer friendly" way of doing things.