Difference between revisions of "TurtleRight Command"

From GeoGebra Manual
Jump to: navigation, search
(Created page with "<noinclude>{{Manual Page|version=5.0}}</noinclude>{{betamanual|version=5.0}} {{command|3D}} ;TurtleRight[ <Turtle>, <Angle> ] :The turtle turns to the right by a given angle....")
 
(command syntax: changed [ ] into ( ))
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{betamanual|version=5.0}}
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
{{command|3D}}
+
;TurtleRight( <Turtle>, <Angle> )
;TurtleRight[ <Turtle>, <Angle> ]
 
 
:The turtle turns to the right by a given angle.   
 
:The turtle turns to the right by a given angle.   
{{example| 1=<div><code><nowiki>TurtleRight[turtle, 1]</nowiki></code> turns the turtle to the right by 1 rad. </div> {{Note| 1=If you enter <code><nowiki>TurtleRight[turtle, 1°]</nowiki></code> the turtle turns to the right by 1 degree. }}}}
+
:{{example| 1=<code><nowiki>TurtleRight(turtle, 1)</nowiki></code> turns the turtle to the right by 1 rad, if [[File: Animate_Pause.png|link=]]'' Pause'' button is displayed. Otherwise you must press the [[File: Animate_Play.png|link=]]'' Play'' button so that the rotation is effected. <br/>  
 +
::{{Note| 1=If you enter <code><nowiki>TurtleRight(turtle, 1°)</nowiki></code> the turtle turns to the right by 1 degree. }}}}
 +
 
 +
{{Note| See also [[Turtle Command|Turtle]],  [[TurtleBack Command|TurtleBack]],  [[TurtleForward Command|TurtleForward]] and  [[TurtleLeft Command|TurtleLeft]] commands.}}

Latest revision as of 09:22, 12 October 2017


TurtleRight( <Turtle>, <Angle> )
The turtle turns to the right by a given angle.
Example: TurtleRight(turtle, 1) turns the turtle to the right by 1 rad, if Animate Pause.png Pause button is displayed. Otherwise you must press the Animate Play.png Play button so that the rotation is effected.
Note: If you enter TurtleRight(turtle, 1°) the turtle turns to the right by 1 degree.


Note: See also Turtle, TurtleBack, TurtleForward and TurtleLeft commands.
© 2024 International GeoGebra Institute