applyViewPortTransfrom method

Offset applyViewPortTransfrom(
  1. Offset inital
)

Helper function to apply viewportOffset and viewportScale to a Offset

Implementation

Offset applyViewPortTransfrom(Offset inital) =>
    (inital - viewportOffset) * viewportScale;