factory Vec2d(double v1, double v2) { final p = calloc<cvg.Vec2d>() ..ref.val1 = v1 ..ref.val2 = v2; return Vec2d._(p); }