factory Point2f(double x, double y) { final ptr = calloc<cvg.Point2f>() ..ref.x = x ..ref.y = y; return Point2f.fromPointer(ptr); }