unscaleVector method
Converts a vector representing a delta in the screen space to the world space.
This considers only the scaling transformation, as the translations are cancelled in a delta transformation. A delta can be a displacement (difference between two position vectors), a velocity (displacement over time), etc.
Implementation
@override
Vector2 unscaleVector(Vector2 screenCoordinates) {
return _components.reversed.fold(
screenCoordinates,
(previousValue, element) => element.unscaleVector(previousValue),
);
}