FVector.fromList constructor

FVector.fromList(
  1. List<double> list
)

Implementation

FVector.fromList(List<double> list)
    : nRows = list.length,
      columnData = Float32List.fromList(
              list.followedBy([0, 0, 0]).toList(growable: false))
          .buffer
          .asFloat32x4List() {
  listView = columnData.buffer.asFloat32List(0, nRows);
}