Rect2f constructor

Rect2f(
  1. double x,
  2. double y,
  3. double width,
  4. double height,
)

Implementation

factory Rect2f(double x, double y, double width, double height) {
  final ptr = calloc<cvg.CvRect2f>()
    ..ref.x = x
    ..ref.y = y
    ..ref.width = width
    ..ref.height = height;
  return Rect2f._(ptr);
}