MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / radians

Method radians

tools/python-3.11.9-amd64/Lib/turtle.py:1589–1601  ·  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

1587 self._setDegreesPerAU(fullcircle)
1588
1589 def radians(self):
1590 """ Set the angle measurement units to radians.
1591
1592 No arguments.
1593
1594 Example (for a Turtle instance named turtle):
1595 >>> turtle.heading()
1596 90
1597 >>> turtle.radians()
1598 >>> turtle.heading()
1599 1.5707963267948966
1600 """
1601 self._setDegreesPerAU(math.tau)
1602
1603 def _go(self, distance):
1604 """move turtle forward by specified distance"""

Callers 3

rotateMethod · 0.80
circleMethod · 0.80
tiltangleMethod · 0.80

Calls 1

_setDegreesPerAUMethod · 0.95

Tested by

no test coverage detected