MCPcopy Index your code
hub / github.com/python/cpython / radians

Method radians

Lib/turtle.py:1649–1661  ·  view source on GitHub ↗

Set the angle measurement units to radians. No arguments. Example (for a Turtle instance named turtle): >>> turtle.heading() 90 >>> turtle.radians() >>> turtle.heading() 1.5707963267948966

(self)

Source from the content-addressed store, hash-verified

1647 self._setDegreesPerAU(fullcircle)
1648
1649 def radians(self):
1650 """ Set the angle measurement units to radians.
1651
1652 No arguments.
1653
1654 Example (for a Turtle instance named turtle):
1655 >>> turtle.heading()
1656 90
1657 >>> turtle.radians()
1658 >>> turtle.heading()
1659 1.5707963267948966
1660 """
1661 self._setDegreesPerAU(math.tau)
1662
1663 def _go(self, distance):
1664 """move turtle forward by specified distance"""

Callers 5

rotateMethod · 0.80
circleMethod · 0.80
tiltangleMethod · 0.80
testRadiansMethod · 0.80

Calls 1

_setDegreesPerAUMethod · 0.95

Tested by 2

testRadiansMethod · 0.64