edgeDst method

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

Implementation

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