Wow... amazing. Thank you. Works fantastic, though I honestly don't have a clue what you did.
One thing I noticed is it gave me a wrong angle when I clicked on a block that had been rotated. It also didn't allow me to snap to a particular point on a circle, to get the tangent there.
I hope you know I'm not complaining!
Thanks for the kind welcome.