SetViewDirection 指令

来自GeoGebra Manual
Nuhero讨论 | 贡献2024年1月4日 (四) 04:31的版本 (建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|3D}} ;SetViewDirection( <Direction> ) :Sets the direction of the 3D view orientation depending on t…”的新页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


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 eg SetViewDirection(Vector((0, 0, 1)))
  • See also Mode viewinfrontof.png View in front of tool.
© 2024 International GeoGebra Institute