Vec2w.fromNative constructor

Vec2w.fromNative(
  1. Vec2w v
)

Implementation

factory Vec2w.fromNative(cvg.Vec2w v) {
  final p = calloc<cvg.Vec2w>()
    ..ref.val1 = v.val1
    ..ref.val2 = v.val2;
  return Vec2w._(p);
}