Vec2d constructor

Vec2d(
  1. double v1,
  2. double v2
)

Implementation

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