Difference between revisions of "SetCoords Command"

From GeoGebra Manual
Jump to: navigation, search
({{Note| This also works for Points on paths and in regions. The Point will be moved to the closest possible place}})
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</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 07: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