link-heading4.0

link-heading Link Command

Reports the heading in degrees (at least 0, less than 360) from end1 to end2 of the link. Throws a runtime error if the endpoints are at the same location.

ask link 0 1 [ print link-heading ]
;; prints [[towards other-end] of end1] of link 0 1

See also link-length

Take me to the full NetLogo Dictionary