unprojectVector method

  1. @override
Vector2 unprojectVector(
  1. Vector2 screenCoordinates
)
inherited

Converts a vector in the screen space to the world space.

This considers both the translation and scaling transformations.

Implementation

@override
Vector2 unprojectVector(Vector2 screenCoordinates) {
  return _position + (screenCoordinates / zoom);
}