``

prev Menu next

GET POINT ☆
`GET POINT: x, y
` assigns the coordinates of the point indicated by the mouse click to numeric variables x and y.
Progression of the program is to be suspended until a mouse click.
The beam is to be off.
Refer to PLOT LINES
Let A,B be 1-dimensional arrays, M be a 2-dimensional array.
`MAT GET POINT A,B
MAT GET POINT M
` obtains the coordinates of the points of number of the size of the array.
Let n be a numeric expression.
`MAT GET POINT A(n),B(n)
MAT GET POINT M(n,2)
` Before execution, arrays are re-sized.
`MAT GET POINT: A(?),B(?)
MAT GET POINT: M(?,)
` While the left button of the mouse is pressed, the obtained coordinates are substituted for the arrays.
The size of the arrays are adjusted by the number of the points obtained.
If the amount of the arrays has reached the upper bound, the execution ends.

Note.
MAT GET POINT statements may not operate properly on Linux or Mac.