toAbsolute method

double toAbsolute(
  1. double relative
)

Converts relative coordinates from -1, 1 to screen coordinates.

Implementation

double toAbsolute(double relative) => relative / 2 * screen;