scale method

void scale(
  1. num s
)

Implementation

void scale(num s) {
  final a = x * s.toDouble();
  x = T is double ? a.n4 : a.round();
  final b = y * s.toDouble();
  y = T is double ? b.n4 : b.round();
}