function vec9toMat3(vec9) {
  if (vec9.length !== 9) {
    throw Error("Array not length 9");
  }
  //prettier-ignore
  return [
    [vec9[0], vec9[1], vec9[2]],
    [vec9[3], vec9[4], vec9[5]],
    [vec9[6], vec9[7], vec9[8]],
  ];
}
// TODO: work with VTK to change the internal formatting of arrays.
work with VTK to change the internal formatting of arrays.
work with VTK to change the internal formatting of arrays .
function vec9toMat3(vec9) {
  if (vec9.length !== 9) {
    throw Error("Array not length 9");
  }
  return [
    [vec9[0], vec9[1], vec9[2]],
    [vec9[3], vec9[4], vec9[5]],
    [vec9[6], vec9[7], vec9[8]],
  ];
}
function vec9toMat3 ( vec9 ) { if ( vec9 . length !== 9 ) { throw Error ( "Array not length 9" ) ; } return [ [ vec9 [ 0 ] , vec9 [ 1 ] , vec9 [ 2 ] ] , [ vec9 [ 3 ] , vec9 [ 4 ] , vec9 [ 5 ] ] , [ vec9 [ 6 ] , vec9 [ 7 ] , vec9 [ 8 ] ] , ] ; }
TODO: work with VTK to change the internal formatting of arrays.
TODO : work with VTK to change the internal formatting of arrays .
//prettier-ignore