function convertToVector3(arrayOrVector3) {
  var cornerstoneMath = _externalModules2.default.cornerstoneMath;

  if (arrayOrVector3 instanceof cornerstoneMath.Vector3) {
    return arrayOrVector3;
  }

  return new cornerstoneMath.Vector3(arrayOrVector3[0], arrayOrVector3[1], arrayOrVector3[2]);
}
/**
 * Convert an Array to a cornerstoneMath.Vector3
 *
 * @param {Array|cornerstoneMath.Vector3} arrayOrVector3 Input array or Vector3
 * @return {cornerstoneMath.Vector3}
 */
Convert an Array to a cornerstoneMath.Vector3
@param {Array|cornerstoneMath.Vector3} arrayOrVector3 Input array or Vector3
@return {cornerstoneMath.Vector3}
Convert an Array to a cornerstoneMath . Vector3 @param { Array|cornerstoneMath . Vector3 } arrayOrVector3 Input array or Vector3 @return { cornerstoneMath . Vector3 }
function convertToVector3(arrayOrVector3) {
  var cornerstoneMath = _externalModules2.default.cornerstoneMath;
  if (arrayOrVector3 instanceof cornerstoneMath.Vector3) {
    return arrayOrVector3;
  }
  return new cornerstoneMath.Vector3(arrayOrVector3[0], arrayOrVector3[1], arrayOrVector3[2]);
}
function convertToVector3 ( arrayOrVector3 ) { var cornerstoneMath = _externalModules2 . default . cornerstoneMath ; if ( arrayOrVector3 instanceof cornerstoneMath . Vector3 ) { return arrayOrVector3 ; } return new cornerstoneMath . Vector3 ( arrayOrVector3 [ 0 ] , arrayOrVector3 [ 1 ] , arrayOrVector3 [ 2 ] ) ; }
Convert an Array to a cornerstoneMath.Vector3
 @param {Array|cornerstoneMath.Vector3} arrayOrVector3 Input array or Vector3
 @return {cornerstoneMath.Vector3}
Convert an Array to a cornerstoneMath . Vector3 @param { Array|cornerstoneMath . Vector3 } arrayOrVector3 Input array or Vector3 @return { cornerstoneMath . Vector3 }