updateTbState method

dynamic updateTbState(
  1. dynamic newState,
  2. dynamic updateMatrices
)

Update the trackball FSA @param {STATE2} newState New state of the FSA @param {Boolean} updateMatrices If matriices state should be updated

Implementation

updateTbState(newState, updateMatrices) {
  _state = newState;
  if (updateMatrices) {
    updateMatrixState();
  }
}