Vec3s.fromNative constructor

Vec3s.fromNative(
  1. Vec3s v
)

Implementation

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