Vec2i.fromNative constructor

Vec2i.fromNative(
  1. Vec2i v
)

Implementation

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