src.paste.apply_trsf
- apply_trsf(M, translation, points)[source]
Apply a rotation from a 2x2 rotation matrix M together with a translation from a translation vector of length 2 translation to a list of points.
- Parameters
M (nd.array) – A 2x2 rotation matrix.
translation (nd.array) – A translation vector of length 2.
points (nd.array) – A nx2 array of n points 2D positions.
- Return type
ndarray- Returns
(nd.array) A nx2 matrix of the n points transformed.