boolean canBeFoldedWith ( TouchState ts , boolean ignoreIDs ) { if ( ts . pointCount != pointCount ) { return false ; } if ( ignoreIDs ) { return true ; } for ( int i = 0 ; i < pointCount ; i ++ ) { if ( ts . points [ i ] . id != points [ i ] . id ) { return false ; } } return true ; }
Finds out whether two non - null states are identical in everything but their touch point coordinates