projectVector method
Converts a vector in the world space to the screen space.
This considers both the translation and scaling transformations.
Implementation
@override
Vector2 projectVector(Vector2 worldCoordinates) {
return _components.fold(
worldCoordinates,
(previousValue, element) => element.projectVector(previousValue),
);
}