Home
last modified time | relevance | path

Searched refs:mass (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DUniverse.kt67 mass = 4 / 3 * PIf * radius.pow(3) * PLANETARY_DENSITY in <lambda>()
111 mass = 4 / 3 * PIf * radius.pow(3) * STELLAR_DENSITY
145 val period = sqrt(orbitRadius.pow(3f) / star.mass) * KEPLER_CONSTANT in initTest()
202 val period = sqrt(orbitRadius.pow(3f) / star.mass) * KEPLER_CONSTANT in initRandom()
259 GRAVITATION * (ship.mass * planet.mass) / d.pow(2) in updateAll()
391 mass: Float = 0f,
407 this.mass = mass
445 mass = SPACECRAFT_MASS
498 mass = 1f, in postUpdate()
DPhysics.kt57 var mass = 0f variable in com.android.egg.landroid.Body
DMainActivity.kt267 " MASS: %.3g".format(mass), in Telemetry()
550 val vorbit = sqrt(GRAVITATION * it.mass / range) in Spaaaace()
551 val vescape = sqrt(2 * GRAVITATION * it.mass / it.radius) in Spaaaace()
DVisibleUniverse.kt116 val r = sqrt(GRAVITATION * planet.mass * SPACECRAFT_MASS / force) in ZoomedDrawScope()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rscript59 float4 mass = rsGetElementAt_float4(positions, i);
60 float3 dir = mass.xyz - in.xyz;
61 float dist = distance(mass.xyz, in.xyz);
65 force += dir * (mass.w * invDistCubed);
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java351 float mass = 10.f; in doPhysics() local
358 … totalForce[0] = -mPos[0] * springStrength - mVel[0]*frictionCoeff + gMultiplier*mGForce[0]*mass; in doPhysics()
359 … totalForce[1] = -mPos[1] * springStrength - mVel[1]*frictionCoeff + gMultiplier*mGForce[1]*mass; in doPhysics()
360 … totalForce[2] = -mPos[2] * springStrength - mVel[2]*frictionCoeff + gMultiplier*mGForce[2]*mass; in doPhysics()
363 accel[0] = totalForce[0]/mass; in doPhysics()
364 accel[1] = totalForce[1]/mass; in doPhysics()
365 accel[2] = totalForce[2]/mass; in doPhysics()