intersectConvexConvexAsync function
Finds intersection of two convex polygons.
https://docs.opencv.org/4.x/d3/dc0/group__imgproc__shape.html#ga06eed475945f155030f2135a7f25f11d
Implementation
Future<(double rval, VecPoint p12)> intersectConvexConvexAsync(
VecPoint p1,
VecPoint p2, {
VecPoint? p12,
bool handleNested = true,
}) {
final r = calloc<ffi.Float>();
p12 ??= VecPoint();
return cvRunAsync0(
(callback) => cimgproc.cv_intersectConvexConvex(p1.ref, p2.ref, p12!.ptr, handleNested, r, callback),
(c) {
final rval = (r.value, p12!);
calloc.free(r);
return c.complete(rval);
},
);
}