SetViewDirection 指令
来自GeoGebra Manual
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版。
- SetViewDirection( <Direction> )
- Sets the direction of the 3D view orientation depending on the given object.
- 範例:
SetViewDirection(Vector((0, 0, 1)))
- 範例:
SetViewDirection((0, 0, 1))
- 範例:
SetViewDirection(x + y + z = 1)
- SetViewDirection( )
- Sets the direction of the 3D view orientation to the default position.
- 範例:
SetViewDirection()
- SetViewDirection( <Direction>, <Boolean animated> )
- Sets the direction of the 3D view orientation depending on the given object, with optional animation.
- 範例: 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 α.
備註:
- The view direction can be set towards a line, segment, plane, etc.
- If you do eg
SetViewDirection(x + y + z = 1)
twice then there are two possible outcomes and the second one will rotate the view 180°. To avoid ambiguity use egSetViewDirection(Vector((0, 0, 1)))
- See also View in front of tool.