VecI16.fromList constructor

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

Implementation

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