public boolean hasContactToAtom ( Point3d [ ] iAtoms , Point3d [ ] jAtoms , Point3d query , double cutoff ) { for ( int i : iIndices ) { double distance = iAtoms [ i ] . distance ( query ) ; if ( distance < cutoff ) return true ; } if ( jAtoms != null ) { for ( int i : jIndices ) { double distance = jAtoms [ i ] . distance ( query ) ; if ( distance < cutoff ) return true ; } } return false ; }
Tests whether any atom in this cell has a contact with the specified query atom