getVertexAsync method

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

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));
    });