static convertZxyToXyz(input, elementCount, output) {
    //>>includeStart('debug', pragmas.debug);
    Check.defined("input", input);
    Check.typeOf.number.greaterThanOrEquals("elementCount", elementCount, 0);
    //>>includeEnd('debug');

    if (!defined(output)) {
      output = new Float32Array(input.length);
    }
    let offset = 0;
    for (let i = 0; i < elementCount; i++, offset += 3) {
      const z = input[offset + 0];
      const x = input[offset + 1];
      const y = input[offset + 2];
      output[offset + 0] = x;
      output[offset + 1] = y;
      output[offset + 2] = z;
    }
    return output;
  }
Swizzle all three consecutive elements in the given input array
from (z, x, y) to (x, y, z), and write the result into the
given output array, creating a new array if the given output
array was undefined.

@param {TypedArray} input The input
@param {number} elementCount The number of elements
@param {TypedArray} [output] The result
@returns {TypedArray} The result