Vec2f.fromNative constructor

Vec2f.fromNative(
  1. Vec2f v
)

Implementation

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