gets the maximum joint according to the given comparator . you can use this with the methods comparex , comparey and comparez to find the most extreme joints in a particular dimension . for example , maxjointby userdata.getalljoints , comparex will get the rightmost joint as it appears on screen - this will probably be your left hand when you face the sensor . maxjointby userdata.getalljoints , comparey will get the lowest joint y coordinates get larger as you go downwards , as on screen , but contrary to mathematical convention . maxjointby userdata.getalljoints , comparez will get the furthers joint from the sensor . note that this method completely ignores the confidence value associated with each joint . concode_field_sep int KNEE concode_elem_sep int NUM_JOINTS concode_elem_sep int joint concode_elem_sep int LEFT concode_elem_sep int RIGHT concode_elem_sep int LEFT_HAND concode_elem_sep int LEFT_SHOULDER concode_elem_sep int LEFT_HIP concode_elem_sep int LEFT_KNEE concode_elem_sep int RIGHT_ELBOW concode_elem_sep int HAND concode_elem_sep int RIGHT_SHOULDER concode_elem_sep int HIP concode_elem_sep Point3D positionScreen concode_elem_sep int RIGHT_KNEE concode_elem_sep int LEFT_ELBOW concode_elem_sep int RIGHT_HAND concode_elem_sep int RIGHT_FOOT concode_elem_sep float confidence concode_elem_sep int TORSO concode_elem_sep int FOOT concode_elem_sep Point3D positionWorld concode_elem_sep int LEFT_FOOT concode_elem_sep int HEAD concode_elem_sep int NECK concode_elem_sep int RIGHT_HIP concode_elem_sep int SHOULDER concode_elem_sep int ELBOW concode_field_sep Point3D getScreenPosition concode_elem_sep int compare concode_elem_sep int compare concode_elem_sep int compare concode_elem_sep int minJointBy concode_elem_sep Joint scaledCopy concode_elem_sep float getConfidence concode_elem_sep int getX concode_elem_sep int getY concode_elem_sep Comparator<Joint> compareX concode_elem_sep Comparator<Joint> compareY concode_elem_sep Comparator<Joint> compareZ concode_elem_sep int getJointIndex concode_elem_sep String toString concode_elem_sep Point3D getPhysicalPosition
int function ( Joint [ ] arg0 , Comparator < Joint > arg1 ) { Joint [ ] loc0 = new Joint [ arg0 . length ] ; System . arraycopy ( arg0 , 0 , loc0 , 0 , arg0 . length ) ; java . util . Arrays . sort ( loc0 , arg1 ) ; return loc0 [ loc0 . length - 1 ] . joint ; }