RotatedRect constructor

RotatedRect(
  1. Point2f center,
  2. (double, double) size,
  3. double angle
)

Implementation

factory RotatedRect(Point2f center, (double, double) size, double angle) {
  final sz = calloc<cvg.CvSize2f>()
    ..ref.width = size.$1
    ..ref.height = size.$2;
  final ptr = calloc<cvg.RotatedRect>()
    ..ref.center = center.ref
    ..ref.size = sz.ref
    ..ref.angle = angle;
  final rect = RotatedRect._(ptr);
  calloc.free(sz);
  return rect;
}