“ZoomIn 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
第1行: 第1行:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
;ZoomIn( )
 
;ZoomIn( )
:Restores the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] to the default initial position
+
: [[File:Menu view graphics.svg|link=|16px]] [[ 繪圖區]] 回復到預設初始位置('''標準比例 1:1''')。
  
;ZoomIn( <Scale Factor> )
+
;ZoomIn( < 縮放倍率> )
:Zooms the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] in by given factor with respect to current zoom, center of the screen is used as center point for the zoom.
+
: 將目前的 [[File:Menu view graphics.svg|link=|16px]] [[ 繪圖區]] 以指定 <縮放倍率> 進行放大,並以繪圖區的中心點作為縮放中心。
:{{example|1=<div><code>ZoomIn(1)</code> doesn't change the view, but does remove traces</div> <div><code>ZoomIn(2)</code> zooms the view in</div> <div><code>ZoomIn(0.5)</code> is equivalent to <code>ZoomOut(2)</code>, i.e. it zooms the view out.</div>}}
+
:{{example|1=<div><code>ZoomIn(1)</code> 不會進行縮放,但會移除圖面上的蹤跡。</div> <div><code>ZoomIn(2)</code> 將圖面放大。</div> <div><code>ZoomIn(0.5)</code> 等同於 <code>ZoomOut(2)</code> ,將圖面縮小。</div>}}
  
;ZoomIn( <Scale Factor>, &lt;Center Point> )
+
;ZoomIn( < 縮放倍率>, &lt; 中心點> )
:Zooms the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] in by given factor with respect to current zoom, second parameter specifies center point for the zoom.
+
: 將目前的 [[File:Menu view graphics.svg|link=|16px]] [[ 繪圖區]] 以指定 <縮放倍率> 進行放大,並以 <中心點> 作為縮放中心。
 
:{{example|1=<div><code>ZoomIn(2, (0, 0))</code></div>}}
 
:{{example|1=<div><code>ZoomIn(2, (0, 0))</code></div>}}
  

2022年2月17日 (四) 09:22的版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


ZoomIn( )
Menu view graphics.svg 繪圖區回復到預設初始位置(標準比例 1:1)。
ZoomIn( <縮放倍率> )
將目前的 Menu view graphics.svg 繪圖區以指定 <縮放倍率> 進行放大,並以繪圖區的中心點作為縮放中心。
範例:
ZoomIn(1) 不會進行縮放,但會移除圖面上的蹤跡。
ZoomIn(2) 將圖面放大。
ZoomIn(0.5) 等同於 ZoomOut(2),將圖面縮小。
ZoomIn( <縮放倍率>, <中心點> )
將目前的 Menu view graphics.svg 繪圖區以指定 <縮放倍率> 進行放大,並以 <中心點> 作為縮放中心。
範例:
ZoomIn(2, (0, 0))
ZoomIn( <Min x>, <Min y>, <Max x>, <Max y> )
Zooms the graphics view to the rectangle given by vertices (Min x, Min y), (Max x, Max y).
範例:
ZoomIn(0, 1, 5, 6)
備註: If any of these parameters are dependent or has label set, the bounds of the view become dynamic. To avoid this behavior, use CopyFreeObject Command.
範例:
If a is a slider, ZoomIn(-a, -a, a, a) makes the zoom of the view dependent on slider a.
ZoomIn( <Min x>, <Min y>, <Min z>, <Max x>, <Max y>, <Max z> )
Zooms the 3D graphics view to the cuboid given by vertices (Min x, Min y, Min z), (Max x, Max y, Max z).
範例:
ZoomIn(-5, -5, -5, 5, 5, 5)
備註: The dynamic behavior of the 2D version isn't supported
備註:

Comments

運用的想法[编辑]

用切線對函數進行線性近似[编辑]

建立一個函數 f 及其上一點 A,以及帶有程式碼 ZoomIn(2,A) 的按鈕,利用此按鈕將函數放大到足夠大的時候,可觀察到局部函數圖形與切線近似。另一個使用 ZoomOut_指令的按鈕可幫助您發現,當 A 點在其他位置時也會有同樣的觀察結果。

© 2024 International GeoGebra Institute