Transforms X and Y coordinates with a Qt-style transformation matrix. The advantage over direct use of Qt is vectorization.
qvmap(m, x, y)
- A matrix encoding the transformation, or something
coercible to a matrix, like a C++
- X coordinates; if
yis missing, should be something coercible to a numeric vector or matrix. If the vector coercion succeeds, the vector is coerced to a matrix with
matrix(x, ncol = 2, byrow = TRUE). The first column is taken as X, the second as Y.
- Y coordinates, optional
- The mapped coordinates, as a two column (X, Y) matrix,
yis missing, in which case an attempt is made to coerce the result to the class of
x, if any.
Looks like there are no examples yet.