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 =>
cvRunAsync2((callback) => cffi.Subdiv2D_GetVertex_Async(ref, vertex, callback), (c, p, p1) {
final firstEdge = p1.cast<ffi.Int>().value;
calloc.free(p1);
c.complete((Point2f.fromPointer(p.cast<cvg.Point2f>()), firstEdge));
});