Searched refs:magnitude (Results 1 – 5 of 5) sorted by relevance
623 final float magnitude = (float) Math.sqrt(x * x + y * y + z * z); in onSensorChanged() local624 if (magnitude < NEAR_ZERO_MAGNITUDE) { in onSensorChanged()632 if (isAcceleratingLocked(magnitude)) { in onSensorChanged()644 Math.asin(z / magnitude) * RADIANS_TO_DEGREES); in onSensorChanged()900 private boolean isAcceleratingLocked(float magnitude) { in isAcceleratingLocked() argument901 return magnitude < MIN_ACCELERATION_MAGNITUDE in isAcceleratingLocked()902 || magnitude > MAX_ACCELERATION_MAGNITUDE; in isAcceleratingLocked()
59 float magnitude = (float)Math.sqrt(sum); in normalize() local61 sample[i] /= magnitude; in normalize()
124 float magnitude = X*X + Y*Y; in onSensorChanged() local126 if (magnitude * 4 >= Z*Z) { in onSensorChanged()
259 accelerometer reads a magnitude of g = 9.81 m/s<sup>2</sup>. Similarly, when the device is in261 accelerometer reads a magnitude of g = 0 m/s<sup>2</sup>. Therefore, to measure322 <p>The gravity sensor provides a three dimensional vector indicating the direction and magnitude of504 <p>Where the magnitude of the rotation vector is equal to sin(θ/2), and the direction of the
191 same order of magnitude as the gyroscope drifts around the Z axis.</p>