packages/react-swipeable-views/src/SwipeableViews.js
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,
  };
}
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,
  };
}
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 , } ; }
We are using a 2x2 rotation matrix.
We are using a 2x2 rotation matrix .