Difference between revisions of "SetCoords Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
({{Note| This also works for Points on paths and in regions. The Point will be moved to the closest possible place}})
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
{{command|scripting}}
+
;SetCoords( <Object>, <x>, <y> )
;SetCoords[ <Point>, <x>, <y> ]
+
:Changes cartesian coordinates of [[Free, Dependent and Auxiliary Objects|free]] objects. This command uses values of the coordinates, not their definitions, therefore the object stays free.
:Changes cartesian coordinates of [[Free, Dependent and Auxiliary Objects|free]] [[Points and Vectors|point or vector]]. This command uses values of the coordinates, not their definitions, therefore the point stays free.
+
{{Note| This also works for Points on paths and in regions. The Point will be moved to the closest possible place}}
 +
{{Note| This command now works for Sliders, Buttons, Checkboxes, Input Boxes, Images. If "Absolute Screen Position" is selected then ''x'', ''y'' are in screen pixels.}}

Latest revision as of 08:32, 11 September 2019


SetCoords( <Object>, <x>, <y> )
Changes cartesian coordinates of free objects. This command uses values of the coordinates, not their definitions, therefore the object stays free.
Note: This also works for Points on paths and in regions. The Point will be moved to the closest possible place
Note: This command now works for Sliders, Buttons, Checkboxes, Input Boxes, Images. If "Absolute Screen Position" is selected then x, y are in screen pixels.
© 2024 International GeoGebra Institute