Difference between revisions of "SetViewDirection Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
(Missing syntax SetViewDirection())
Line 3: Line 3:
 
: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( )
 +
:Sets the direction of the 3D view orientation to the default position..
 +
:{{example| 1=<code><nowiki>SetViewDirection()</nowiki></code>}}
  
 
;SetViewDirection( <Direction>, <Boolean animated> )
 
;SetViewDirection( <Direction>, <Boolean animated> )

Revision as of 10:06, 29 July 2019


SetViewDirection( <Direction> )
Sets the direction of the 3D view orientation depending on the given object.
Example: SetViewDirection((0, 0, 1))


SetViewDirection( )
Sets the direction of the 3D view orientation to the default position..
Example: SetViewDirection()


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 Mode viewinfrontof.png View in front of tool.
© 2024 International GeoGebra Institute