float function ( ) { if ( ! diameterSqIsCalculated ) { diameterSq = ( isMultiTouch ? dx * dx + dy * dy : 0.0f ) ; diameterSqIsCalculated = true ; } return diameterSq ; }
calculate the squared diameter of the multitouch event , and cache it . use this if you do n't need to perform the sqrt . concode_field_sep int numPoints concode_elem_sep int[] pointerIds concode_elem_sep float xMid concode_elem_sep boolean diameterIsCalculated concode_elem_sep boolean diameterSqIsCalculated concode_elem_sep float[] xs concode_elem_sep float diameterSq concode_elem_sep boolean isDown concode_elem_sep float pressureMid concode_elem_sep float dx concode_elem_sep float diameter concode_elem_sep float dy concode_elem_sep boolean angleIsCalculated concode_elem_sep float[] ys concode_elem_sep float yMid concode_elem_sep long eventTime concode_elem_sep float angle concode_elem_sep boolean isMultiTouch concode_elem_sep int action concode_elem_sep float[] pressures concode_field_sep float getMultiTouchAngle concode_elem_sep void set concode_elem_sep void set concode_elem_sep float getMultiTouchWidth concode_elem_sep float getMultiTouchHeight concode_elem_sep float[] getXs concode_elem_sep int getAction concode_elem_sep float[] getYs concode_elem_sep boolean isDown concode_elem_sep float getMultiTouchDiameter concode_elem_sep int getNumTouchPoints concode_elem_sep float getX concode_elem_sep float getY concode_elem_sep float getPressure concode_elem_sep int julery_isqrt concode_elem_sep boolean isMultiTouch concode_elem_sep float[] getPressures concode_elem_sep int[] getPointerIds concode_elem_sep long getEventTime