Lines Matching defs:distance
130 'degrees', 'distance', 'dot', 'down', 'end_fill', 'end_poly', 'fd',
1603 def _go(self, distance):
1604 """move turtle forward by specified distance"""
1605 ende = self._position + self._orient * distance
1617 def forward(self, distance):
1618 """Move the turtle forward by the specified distance.
1623 distance -- a number (integer or float)
1625 Move the turtle forward by the specified distance, in the direction
1638 self._go(distance)
1640 def back(self, distance):
1641 """Move the turtle backward by distance.
1646 distance -- a number
1648 Move the turtle backward by distance, opposite to the direction the
1658 self._go(-distance)
1829 def distance(self, x, y=None):
1830 """Return the distance from the turtle to (x,y) in turtle step units.
1836 call: distance(x, y) # two coordinates
1837 --or: distance((x, y)) # a pair (tuple) of coordinates
1838 --or: distance(vec) # e.g. as returned by pos()
1839 --or: distance(mypen) # where mypen is another turtle
1844 >>> turtle.distance(30,40)
1848 >>> turtle.distance(pen)
1868 call: distance(x, y) # two coordinates
1869 --or: distance((x, y)) # a pair (tuple) of coordinates
1870 --or: distance(vec) # e.g. as returned by pos()
1871 --or: distance(mypen) # where mypen is another turtle
4062 radius = distance(0, 0)/2.0
4128 while tri.distance(turtle) > 4: