Vec4f.fromNative constructor

Vec4f.fromNative(
  1. Vec4f v
)

Implementation

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