unprojectVector method

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

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 (screenCoordinates - _resizeOffset)..scale(1 / _scale);
}