Searched refs:mag1 (Results 1 – 1 of 1) sorted by relevance
348 final double mag1 = Math.sqrt((x1 * x1) + (y1 * y1) + (z1 * z1)); in hasMoved() local350 if (mag1 < MIN_GRAVITY || mag1 > MAX_GRAVITY in hasMoved()353 Slog.d(TAG, "Weird gravity vector: mag1=" + mag1 + ", mag2=" + mag2); in hasMoved()357 final boolean moved = (dotProduct < mag1 * mag2 * MOVEMENT_ANGLE_COS_THRESHOLD); in hasMoved()362 + ", angle=" + (Math.acos(dotProduct / mag1 / mag2) * 180 / Math.PI) in hasMoved()364 + ", mag1=" + mag1 + ", mag2=" + mag2); in hasMoved()