INNER CODE UNIT · Dart
y0
flutterkit/zerker · lib/src/animate/frame.dart:93
double y0 = (1.0 - x);
var point = MathUtil.coordinateRotate(-pi / 2, x0, y0, cx, cy);
var x1 = MathUtil.round(point[0], 4);
var y1 = MathUtil.round(point[1], 4);
return [x1, y1];
}
/// set rect by clip & ratio
void setAllRectByClip(Rect clip) {
this.hasClip = true;
this.srcRect = clip;
this.dstRect = Rect.fromLTRB(
0, 0, clip.width / Constant.ratio, clip.height / Constant.ratio);
}
String toString() {