Searched refs:mag (Results 1 – 9 of 9) sorted by relevance
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
H A D | MainActivity.kt | 223 val distToClosest = (closest.pos - pos).mag().toInt() 229 if (thrust != Vec2.Zero) "THR: %.0f%%".format(thrust.mag() * 100f) 232 "VEL: %.0f".format(velocity.mag()) 276 val m = vec.mag() 367 val mag = min(maxRadius, delta.mag()) regex 368 val r = max(minRadius, mag) 378 if (mag < minRadius) 388 end = origin.value + Vec2.makeWithAngleMag(a, mag), 437 val distToNearestSurf = max(0f, (u.ship.pos - closest.pos).mag() - closest.radius * 1.2f) 472 it.velocity.mag(), [all …]
|
H A D | Universe.kt | 254 val d = vector.mag() 277 .sortedBy { it.first.mag() } 287 val d = (ship.pos - planet.pos).mag() - ship.radius - planet.radius 294 val vDiff = (ship.velocity - planet.velocity).mag() 444 val thrustMag = thrust.mag() 475 if (velocity.mag() > CRAFT_SPEED_LIMIT) 488 val mag = thrust.mag() regex 489 if (sim.rng.nextFloat() < mag) { 507 -MAIN_ENGINE_ACCEL * mag * 10f * dt
|
H A D | Vec2.kt | 34 fun Vec2.mag(): Float { 39 return (this - other).mag()
|
H A D | Physics.kt | 101 if ((p.pos.mag() + p.radius) > radius) {
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
H A D | AnyMotionDetector.java | 403 float mag = norm(); in normalized() local 404 return new Vector3(timeMillisSinceBoot, x / mag, y / mag, z / mag); in normalized()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 115 public static float mag(float a, float b) { in mag() method in MathUtils 119 public static float mag(float a, float b, float c) { in mag() method in MathUtils
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
H A D | NavigationBarEdgePanel.java | 785 float velocity = MathUtils.mag(xVelocity, yVelocity); in handleMoveEvent()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | Settings.java | 5739 double mag = high - low; 5740 return (long) (sRandom.nextDouble() * mag + low);
|
/aosp14/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 58016 Landroid/util/MathUtils;->mag(FF)F 58017 Landroid/util/MathUtils;->mag(FFF)F
|