Vec3f.fromNative constructor

Vec3f.fromNative(
  1. Vec3f v
)

Implementation

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