gsToSs function

Offset gsToSs(
  1. Offset gsPosition,
  2. Offset gsTopLeft,
  3. double scale
)

Convert grid space coordinates to screen space coordinates

Implementation

Offset gsToSs(Offset gsPosition, Offset gsTopLeft, double scale) {
  return (gsPosition - gsTopLeft) * scale;
}