Home | History | Annotate | Download | only in view

Lines Matching refs:magnitude

173      *    absolute magnitude of the acceleration.  In particular, there are singularities
174 * in the calculation as the magnitude approaches 0. By performing the low-pass
180 * is facing. The radial distance is referred to as the magnitude below.
287 // that is turning around a corner or a plane taking off) then the magnitude
293 // without gravity to tell us which way is up. A magnitude near 0 produces
388 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
415 + ", magnitude=" + FloatMath.sqrt(x * x + y * y + z * z));
428 // Calculate the magnitude of the acceleration vector.
429 final float magnitude = FloatMath.sqrt(x * x + y * y + z * z);
430 if (magnitude < NEAR_ZERO_MAGNITUDE) {
432 Slog.v(TAG, "Ignoring sensor data, magnitude too close to zero.");
437 if (isAccelerating(magnitude)) {
449 Math.asin(z / magnitude) * RADIANS_TO_DEGREES);
662 private boolean isAccelerating(float magnitude) {
663 return magnitude < MIN_ACCELERATION_MAGNITUDE
664 || magnitude > MAX_ACCELERATION_MAGNITUDE;