Vec3d.fromNative constructor

Vec3d.fromNative(
  1. Vec3d v
)

Implementation

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