RotatedRect.create constructor

RotatedRect.create(
  1. (double, double) center,
  2. double width,
  3. double height, {
  4. double angle = 0.0,
})

Implementation

factory RotatedRect.create((double, double) center, double width, double height, {double angle = 0.0}) {
  final ptr = calloc<c.mnn_cv_rotated_rect_t>()
    ..ref.center_x = center.$1
    ..ref.center_y = center.$2
    ..ref.width = width
    ..ref.height = height
    ..ref.angle = angle;
  return RotatedRect.fromPointer(ptr);
}