edgeDstAsync method

Future<(int, Point2f)> edgeDstAsync(
  1. int edge
)

Implementation

Future<(int rval, Point2f dstpt)> edgeDstAsync(int edge) async {
  final pp = calloc<cvg.CvPoint2f>();
  final p = calloc<ffi.Int>();
  return cvRunAsync0(
    (callback) => cimgproc.cv_Subdiv2D_edgeDst(ref, edge, pp, p, callback),
    (c) {
      final rval = (p.value, Point2f.fromPointer(pp));
      calloc.free(p);
      return c.complete(rval);
    },
  );
}