Difference between revisions of "SetViewDirection Command"
From GeoGebra Manual
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|3D}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|3D}} | ||
− | ;SetViewDirection | + | ;SetViewDirection( <Direction> ) |
:Sets the direction of the 3D view orientation depending on the given object. | :Sets the direction of the 3D view orientation depending on the given object. | ||
:{{example| 1=<code><nowiki>SetViewDirection[(0, 0, 1)]</nowiki></code>}} | :{{example| 1=<code><nowiki>SetViewDirection[(0, 0, 1)]</nowiki></code>}} | ||
− | ;SetViewDirection | + | ;SetViewDirection( <Direction>, <Boolean animated> ) |
:Sets the direction of the 3D view orientation depending on the given object, with optional animation. | :Sets the direction of the 3D view orientation depending on the given object, with optional animation. | ||
:{{example|1=In order to obtain the rotation of the 3D view, depending on the values of a previously created slider ''α'', use the command <code><nowiki>SetViewDirection[Vector[(1; α; -30°)], false]</nowiki></code> in the ''OnUpdate'' scripting tab of slider ''α''.}} | :{{example|1=In order to obtain the rotation of the 3D view, depending on the values of a previously created slider ''α'', use the command <code><nowiki>SetViewDirection[Vector[(1; α; -30°)], false]</nowiki></code> in the ''OnUpdate'' scripting tab of slider ''α''.}} |
Revision as of 17:17, 7 October 2017
- SetViewDirection( <Direction> )
- Sets the direction of the 3D view orientation depending on the given object.
- Example:
SetViewDirection[(0, 0, 1)]
- SetViewDirection( <Direction>, <Boolean animated> )
- Sets the direction of the 3D view orientation depending on the given object, with optional animation.
- Example: In order to obtain the rotation of the 3D view, depending on the values of a previously created slider α, use the command
SetViewDirection[Vector[(1; α; -30°)], false]
in the OnUpdate scripting tab of slider α.
Note:
- The view direction can be set towards a line, segment, plane, etc.
- See also View in front of tool.