int function ( TransparencySortGeom arg0 , TransparencySortGeom arg1 ) { double loc0 = arg0 . getDistanceSquared ( ) - arg1 . getDistanceSquared ( ) ; if ( loc0 < 0 ) return - 1 ; if ( loc0 == 0 ) return 0 ; return 1 ; }
compares its two arguments for order . returns a negative integer , zero , or a positive integer as the first argument is less than closer to the viewer , equal to , or greater than further from the viewer the second argument . the compare method will be called with 2 objects of type transparencysortgeom and it 's result should indicate which object is closer to the viewer . object1 < object2 if it is to be considered closer and rendered after . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder