MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / _rotate

Method _rotate

Python/Turtle.py:1506–1509  ·  view source on GitHub ↗

Turn turtle counterclockwise by specified angle if angle > 0.

(self, angle)

Source from the content-addressed store, hash-verified

1504 self._goto(ende)
1505
1506 def _rotate(self, angle):
1507 """Turn turtle counterclockwise by specified angle if angle > 0."""
1508 angle *= self._degreesPerAU
1509 self._orient = self._orient.rotate(angle)
1510
1511 def _goto(self, end):
1512 """move turtle to position end."""

Callers 4

rightMethod · 0.95
leftMethod · 0.95
setheadingMethod · 0.95
circleMethod · 0.95

Calls 1

rotateMethod · 0.45

Tested by

no test coverage detected