private static double METHOD_1 ( TYPE_1 a , TYPE_1 b ) { int x = ( b . METHOD_2 ( ) ) - ( a . METHOD_2 ( ) ) ; int y = ( b . METHOD_3 ( ) ) - ( a . METHOD_3 ( ) ) ; return x + y ; }

private static double METHOD_1 ( TYPE_1 a , TYPE_1 b ) { int x = ( b . METHOD_2 ( ) ) - ( a . METHOD_2 ( ) ) ; int y = ( b . METHOD_3 ( ) ) - ( a . METHOD_3 ( ) ) ; if ( x < 0 ) x = - x ; if ( y < 0 ) y = - y ; return x + y ; }
