getVertex method

(Point2f, int) getVertex(
  1. int vertex
)

Implementation

(Point2f rval, int firstEdge) getVertex(int vertex) {
  final pp = calloc<cvg.CvPoint2f>();
  final p = calloc<ffi.Int>();
  cvRun(() => cimgproc.cv_Subdiv2D_getVertex(ref, vertex, p, pp, ffi.nullptr));
  final rval = (Point2f.fromPointer(pp), p.value);
  calloc.free(p);
  return rval;
}