refresh method

Matrix4 refresh(
  1. Matrix4 newMatrix
)

call this method to refresh the graph with a given matrix

@param newMatrix @return

Implementation

Matrix4 refresh(Matrix4 newMatrix) {
  newMatrix.copyInto(_matrixTouch);
  // make sure scale and translation are within their bounds
  limitTransAndScale(_matrixTouch, _contentRect);
  _matrixTouch.copyInto(newMatrix);
  return newMatrix;
}