Difference between revisions of "Vector Command"

From GeoGebra Manual
Jump to: navigation, search
m (Updated tool names)
m (command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|vector-matrix}}
{{command|vector-matrix}}
+
; Vector( <Point> )
; Vector[ <Start Point>, <End Point> ]
+
: Returns the position vector of the given point.
 +
:{{example|1=<div><code><nowiki>Vector((3, 2))</nowiki></code> yields ''u = <math>\begin{pmatrix}3\\2\end{pmatrix}</math>''.</div>}}
 +
; Vector( <Start Point>, <End Point> )
 
: Creates a vector from ''Start Point'' to ''End Point''.  
 
: Creates a vector from ''Start Point'' to ''End Point''.  
:{{example|1=<div><code><nowiki>Vector[(1, 1), (3, 4)]</nowiki></code> yields ''u = <math>\begin{pmatrix}2\\3\end{pmatrix}</math>''.</div>}}
+
:{{example|1=<div><code><nowiki>Vector((1, 1), (3, 4))</nowiki></code> yields ''u = <math>\begin{pmatrix}2\\3\end{pmatrix}</math>''.</div>}}
; Vector[ <Point> ]
+
{{Note| See also [[File:Mode vector.svg|link=|24px]] [[Vector Tool|Vector]] tool.}}
: Returns the position vector of the given point.
 
:{{example|1=<div><code><nowiki>Vector[(3, 2)]</nowiki></code> yields ''u = <math>\begin{pmatrix}3\\2\end{pmatrix}</math>''.</div>}}
 
{{Note| See also [[Image:Tool Vector between Two Points.gif]] [[Vector Tool|Vector]] tool.}}
 
{{betamanual|version=5.0|
 
{{Note|1=From GeoGebra 5, this command will work with 3D Points as well}}
 
}}
 

Latest revision as of 16:43, 29 September 2017


Vector( <Point> )
Returns the position vector of the given point.
Example:
Vector((3, 2)) yields u = \begin{pmatrix}3\\2\end{pmatrix}.
Vector( <Start Point>, <End Point> )
Creates a vector from Start Point to End Point.
Example:
Vector((1, 1), (3, 4)) yields u = \begin{pmatrix}2\\3\end{pmatrix}.
Note: See also Mode vector.svg Vector tool.
© 2024 International GeoGebra Institute