Vec2d.fromNative constructor

Vec2d.fromNative(
  1. Vec2d v
)

Implementation

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