towards-pitch-xyz4.1 towards-pitch-xyz-nowrap4.1

towards-pitch-xyz x y z towards-pitch-xyz-no-wrap x y z Turtle Command Patch Command

Reports the pitch from this agent to the coordinates x, y, z

If the wrapped distance (around the edges of the screen) is shorter than the on-screen distance, towards-pitch will report the pitch of the wrapped path. towards-pitch-nowrap never uses the wrapped path.

Note: In order to get a turtle to face a given location you need to use both towards-pitch-xyz and towardsxy.

Note: asking for the pitch from an agent to the location it is standing on will cause a runtime error.

See also towardsxy

Take me to the full NetLogo Dictionary