Searched refs:magnitude (Results 1 – 7 of 7) sorted by relevance
59 float magnitude = (float)Math.sqrt(sum); in normalize() local61 sample[i] /= magnitude; in normalize()
645 final float magnitude = (float) Math.sqrt(x * x + y * y + z * z); in onSensorChanged() local646 if (magnitude < NEAR_ZERO_MAGNITUDE) { in onSensorChanged()654 if (isAcceleratingLocked(magnitude)) { in onSensorChanged()666 Math.asin(z / magnitude) * RADIANS_TO_DEGREES); in onSensorChanged()924 private boolean isAcceleratingLocked(float magnitude) { in isAcceleratingLocked() argument925 return magnitude < MIN_ACCELERATION_MAGNITUDE in isAcceleratingLocked()926 || magnitude > MAX_ACCELERATION_MAGNITUDE; in isAcceleratingLocked()
124 float magnitude = X*X + Y*Y; in onSensorChanged() local126 if (magnitude * 4 >= Z*Z) { in onSensorChanged()
508 public static @HalfFloat short copySign(@HalfFloat short magnitude, @HalfFloat short sign) { in copySign() argument509 return (short) ((sign & FP16_SIGN_MASK) | (magnitude & FP16_COMBINED)); in copySign()
638 double magnitude = 2.0 * sqrt( (sinMean * sinMean) + (cosMean * cosMean )); variable644 return magnitude;
10785 final double magnitude = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y in normalize() local10787 scrollVector.x /= magnitude; in normalize()10788 scrollVector.y /= magnitude; in normalize()
11310 final float magnitude = (float) Math.sqrt(scrollVector.x * scrollVector.x in normalize() local11312 scrollVector.x /= magnitude; in normalize()11313 scrollVector.y /= magnitude; in normalize()