projectVector method

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

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 (worldCoordinates - _position) * zoom;
}