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