transform function

Offset transform(
  1. Matrix2 matrix,
  2. Offset offset
)

This method transforms the given offset with respect ot the given matrix

Implementation

Offset transform(vector.Matrix2 matrix, Offset offset) {
  return vector2ToOffset(matrix * offsetToVector2(offset));
}