Vec4d.fromNative constructor

Vec4d.fromNative(
  1. Vec4d v
)

Implementation

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