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

Method degrees

tools/python-3.11.9-amd64/Lib/turtle.py:1565–1587  ·  view source on GitHub ↗

Set angle measurement units to degrees. Optional argument: fullcircle - a number Set angle measurement units, i. e. set number of 'degrees' for a full circle. Default value is 360 degrees. Example (for a Turtle instance named turtle):

(self, fullcircle=360.0)

Source from the content-addressed store, hash-verified

1563 self._angleOffset = fullcircle/4.
1564
1565 def degrees(self, fullcircle=360.0):
1566 """ Set angle measurement units to degrees.
1567
1568 Optional argument:
1569 fullcircle - a number
1570
1571 Set angle measurement units, i. e. set number
1572 of 'degrees' for a full circle. Default value is
1573 360 degrees.
1574
1575 Example (for a Turtle instance named turtle):
1576 >>> turtle.left(90)
1577 >>> turtle.heading()
1578 90
1579
1580 Change angle measurement unit to grad (also known as gon,
1581 grade, or gradian and equals 1/100-th of the right angle.)
1582 >>> turtle.degrees(400.0)
1583 >>> turtle.heading()
1584 100
1585
1586 """
1587 self._setDegreesPerAU(fullcircle)
1588
1589 def radians(self):
1590 """ Set the angle measurement units to radians.

Callers 4

__init__Method · 0.95
towardsMethod · 0.80
headingMethod · 0.80
tiltangleMethod · 0.80

Calls 1

_setDegreesPerAUMethod · 0.95

Tested by

no test coverage detected