transform2 method

Vector2 transform2(
  1. Vector2 position
)

Transform position of type Vector2 using the transformation defined by this.

Implementation

Vector2 transform2(Vector2 position) {
  return Vector2(
    (position.x * m11) + (position.y * m21) + m41,
    (position.x * m12) + (position.y * m22) + m42,
  );
}