convertListIntoMatrix4 function

Float64List? convertListIntoMatrix4(
  1. List<double>? matrixValues
)

Just a translation from List of double to a Float64List.

Implementation

Float64List? convertListIntoMatrix4(List<double>? matrixValues) {
  if (matrixValues == null) return null;
  return Float64List.fromList(<double>[
    matrixValues[0],
    matrixValues[1],
    0.0,
    0.0,
    matrixValues[2],
    matrixValues[3],
    0.0,
    0.0,
    0.0,
    0.0,
    1.0,
    0.0,
    matrixValues[4],
    matrixValues[5],
    0.0,
    1.0
  ]);
}