private void filter ( Vector3f acc ) { float threshold = 15f ; if ( acc . x > threshold ) { acc . x = threshold ; } else if ( acc . x < - threshold ) { acc . x = - threshold ; } if ( acc . y > threshold ) { acc . y = threshold ; } else if ( acc . y < - threshold ) { acc . y = - threshold ; } if ( acc . z > threshold ) { acc . z = threshold ; } else if ( acc . z < - threshold ) { acc . z = - threshold ; } }
remove pointed values