MCPcopy Create free account
hub / github.com/Notgnoshi/generative / pitch

Method pitch

generative/lsystem/turtle.py:55–58  ·  view source on GitHub ↗

Pitch the turtle around its local Y axis.

(self, angle)

Source from the content-addressed store, hash-verified

53 logger.debug(f"yaw {angle}deg")
54
55 def pitch(self, angle):
56 """Pitch the turtle around its local Y axis."""
57 self.rotation = self.rotation * Rotation.from_euler("Y", [angle], degrees=True)
58 logger.debug(f"pitch {angle}deg")
59
60 def roll(self, angle):
61 """Roll the turtle around its local X axis.

Callers 3

test_pitchMethod · 0.95
_interpret_defaultMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_pitchMethod · 0.76