INNER CODE UNIT · Dart
point
flutterkit/zerker · lib/src/animate/frame.dart:95
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() {
return "name:$name type:$type image:$image";
}