Vec2f constructor

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

Implementation

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