xToScreen method

int xToScreen (double x)

Implementation

int xToScreen(double x) {
  if (attr[CtourA.ROTATE] == "true") {
    return (x * dataAreaWidth).round() + dataAreaX;
  } else {
    return (x * dataAreaWidth).round() + dataAreaX;
  }
}