getVertexAsync method

Future<(Point2f, int)> getVertexAsync(
  1. int vertex
)

Implementation

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