rectTransform method

GRect rectTransform(
  1. double ix,
  2. double iy, [
  3. double iWidth = 0,
  4. double iHeight = 0,
])

Implementation

GRect rectTransform(
  double ix,
  double iy, [
  double iWidth = 0,
  double iHeight = 0,
]) {
  final x = ix * _canvasRect.scale + _canvasRect.x;
  final y = iy * _canvasRect.scale + _canvasRect.y;
  final width = iWidth * _canvasRect.scale;
  final height = iHeight * _canvasRect.scale;
  return GRect(x, y, width, height);
}