private static boolean crosses_ ( String scl , int dim_a , int dim_b ) { if ( dim_a > dim_b ) { // Valid for area-Line, area-Point, Line-Point if ( scl . charAt ( 0 ) == ' ' && scl . charAt ( 1 ) == ' ' && scl . charAt ( 2 ) == ' ' && scl . charAt ( 3 ) == ' ' && scl . charAt ( 4 ) == ' ' && scl . charAt ( 5 ) == ' ' && scl . charAt ( 6 ) == ' ' && scl . charAt ( 7 ) == ' ' && scl . charAt ( 8 ) == ' ' ) return true ; return false ; } if ( dim_a == 1 && dim_b == 1 ) { // Valid for Line-Line if ( scl . charAt ( 0 ) == ' ' && scl . charAt ( 1 ) == ' ' && scl . charAt ( 2 ) == ' ' && scl . charAt ( 3 ) == ' ' && scl . charAt ( 4 ) == ' ' && scl . charAt ( 5 ) == ' ' && scl . charAt ( 6 ) == ' ' && scl . charAt ( 7 ) == ' ' && scl . charAt ( 8 ) == ' ' ) return true ; } return false ; }
Checks whether the scl string is the crosses relation .