Vec4s constructor

Vec4s(
  1. int v1,
  2. int v2,
  3. int v3,
  4. int v4,
)

Implementation

factory Vec4s(int v1, int v2, int v3, int v4) {
  final p = calloc<cvg.Vec4s>()
    ..ref.val1 = v1
    ..ref.val2 = v2
    ..ref.val3 = v3
    ..ref.val4 = v4;
  return Vec4s._(p);
}