Vec2s.fromNative constructor

Vec2s.fromNative(
  1. Vec2s v
)

Implementation

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