VecF64.fromList constructor

VecF64.fromList(
  1. List<double> pts
)

Implementation

factory VecF64.fromList(List<double> pts) {
  final length = pts.length;
  final pdata = calloc<F64>(length);
  pdata.asTypedList(length).setRange(0, length, pts);
  final p = calloc<cvg.VecF64>()
    ..ref.length = length
    ..ref.ptr = pdata;
  return VecF64.fromPointer(p);
}