private static boolean clearance_equals(freert.rules.ClearanceMatrix p_cl_matrix,int p_layer_1,int p_layer_2){
  if (p_layer_1 == p_layer_2) {
    return true;
  }
  for (int i=1; i < p_cl_matrix.get_class_count(); ++i) {
    for (int j=i; j < p_cl_matrix.get_class_count(); ++j) {
      if (p_cl_matrix.value_at(i,j,p_layer_1) != p_cl_matrix.value_at(i,j,p_layer_2)) {
        return false;
      }
    }
  }
  return true;
}

private static boolean clearance_equals ( freert . rules . ClearanceMatrix p_cl_matrix , int p_layer_1 , int p_layer_2 ) { if ( p_layer_1 == p_layer_2 ) { return true ; } for ( int i = 1 ; i < p_cl_matrix . get_class_count ( ) ; ++ i ) { for ( int j = i ; j < p_cl_matrix . get_class_count ( ) ; ++ j ) { if ( p_cl_matrix . value_at ( i , j , p_layer_1 ) != p_cl_matrix . value_at ( i , j , p_layer_2 ) ) { return false ; } } } return true ; }
returns true , if all clearance values on the 2 input layers are equal .
