code: function applyRotationMatrix(touch, axis) {
    const rotationMatrix = axisProperties.rotationMatrix[axis];
  
    return {
      pageX: rotationMatrix.x[0] * touch.pageX + rotationMatrix.x[1] * touch.pageY,
      pageY: rotationMatrix.y[0] * touch.pageX + rotationMatrix.y[1] * touch.pageY,
    };
  }
docs: We are using a 2x2 rotation matrix.