edgeDst method

(int, Point2f) edgeDst(
  1. int edge
)

Implementation

(int rval, Point2f dstpt) edgeDst(int edge) {
  return using<(int, Point2f)>((arena) {
    final pp = calloc<cimgproc.Point2f>();
    final p = arena<ffi.Int>();
    cvRun(() => cimgproc.Subdiv2D_EdgeDst(ref, edge, pp, p));
    return (p.value, Point2f.fromPointer(pp));
  });
}