Searched refs:magnitude (Results 1 – 1 of 1) sorted by relevance
309 static bool isAccelerating(float magnitude) in isAccelerating() argument311 return ((magnitude < MIN_ACCELERATION_MAGNITUDE) in isAccelerating()312 || (magnitude > MAX_ACCELERATION_MAGNITUDE)); in isAccelerating()392 float x, y, z, alpha, magnitude; in add_samples() local449 magnitude = sqrtf(x * x + y * y + z * z); in add_samples()451 if (magnitude < NEAR_ZERO_MAGNITUDE) { in add_samples()457 if (isAccelerating(magnitude)) { in add_samples()468 tilt_tmp = (int)(asinf(z / magnitude) * RADIANS_TO_DEGREES); in add_samples()