Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AnglePath

AnglePath[{θ1,θ2,θ3,}]
gives the list of 2D coordinates corresponding to a path that starts at , then takes a series of steps of unit length at successive relative angles .

AnglePath[{{r1,θ1},{r2,θ2},{r3,θ3},}]
takes successive steps of lengths .

AnglePath[θ0,{step1,step2,}]
starts at angle with respect to the axis.

AnglePath[{x,y},{step1,step2,}]
starts at the point with initial angle 0 with respect to the axis.

AnglePath[{{x,y},θ0},{step1,step2,}]
starts at with initial angle with respect to the axis.

AnglePath[{{x,y},{dx,dy}},{step1,step2,}]
takes the first step to go from to .

DetailsDetails

  • At each point reached in the formation of a path, AnglePath in effect first rotates by the specified relative angle, then advances by the specified distance.
  • Unless explicitly given as Quantity objects, the angles are assumed to be in radians, increasing counterclockwise. (Multiply by Degree to convert from degrees.)
  • In AnglePath[{θ1,θ2,θ3,}], the angle is assumed to be relative to the axis.
  • The arguments of AnglePath can be symbolic. They can also be Quantity objects.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Starting at along the axis, move several unit steps, rotating 90° before each step:

In[1]:=
Click for copyable input
Out[1]=

A polyline of three segments:

In[1]:=
Click for copyable input
Out[1]=

Advance 20 steps, always turning 110° toward the left:

In[1]:=
Click for copyable input
Out[1]=

Use symbolic input:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.1)