VecI32.fromList constructor

VecI32.fromList(
  1. List<int> pts
)

Implementation

factory VecI32.fromList(List<int> pts) {
  final length = pts.length;
  final p = ccore.std_VecI32_new(length);
  final pdata = ccore.std_VecI32_data(p);
  pdata.asTypedList(length).setAll(0, pts);
  return VecI32.fromPointer(p);
}