CurrentPoint
2-by-3 matrix
Location of last button click, in axes data units. Contains the coordinates of two points defined by the location of the pointer at the last mouse click. MATLAB returns the coordinates with respect to the requested axes.
Clicking Within the Axes — Orthogonal Projection
The two points lie on the line that is perpendicular to the plane of the screen and passes through the pointer. This is true for both 2-D and 3-D views.
The 3-D coordinates are the points, in the axes coordinate system, where this line intersects the front and back surfaces of the axes volume (which is defined by the axes x, y, and z limits).
The returned matrix is of the form:
[x_front y_front z_front; x_back y_back z_back]
where front defines the point nearest to the camera position.
Therefore, if the CurrentPoint property returns the cp matrix , then the first row,
cp(1,: ) specifies the point nearest the viewer and the second row,
cp(2,: ) specifies the point furthest from the viewer.
Partager