getVertexAsync method
Returns vertex location from vertex ID.
https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#a5297daca30f90d1e6d0cc5a75ba76351
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);
},
);
}