rotate method

void rotate(
  1. Canvas canvas,
  2. double cx,
  3. double cy,
  4. double angle,
)

Implementation

void rotate(Canvas canvas,double cx,double cy,double angle) {
  canvas.translate(cx, cy);
  canvas.rotate(angle);
  canvas.translate(-cx, -cy);
}