Wolfram Language & System 11.0 (2016)|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 {0,0}, then takes a series of steps of unit length at successive relative angles θi.

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

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

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

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

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

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 θi are assumed to be in radians, increasing counterclockwise. (Multiply by Degree to convert from degrees.)
  • In AnglePath[{θ1,θ2,θ3,}], the angle θ1 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 {0,0} 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)