SetViewDirection 指令

出自GeoGebra Manual
於 2024年1月4日 (四) 04:31 由 Nuhero討論 | 貢獻 所做的修訂 (建立内容为“<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