getVertex method

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

Implementation

(Point2f rval, int firstEdge) getVertex(int vertex) {
  return using<(Point2f, int)>((arena) {
    final pp = calloc<cimgproc.Point2f>();
    final p = arena<ffi.Int>();
    cvRun(() => cimgproc.Subdiv2D_GetVertex(ref, vertex, p, pp));
    return (Point2f.fromPointer(pp), p.value);
  });
}