projectVector method

  1. @override
Vector2 projectVector(
  1. Vector2 worldCoordinates
)
override

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),
  );
}