Home
last modified time | relevance | path

Searched refs:planet (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DUniverse.kt167 planets.forEachIndexed { idx, planet -> planet.name = "$systemName ${idx + 1}" } in initTest() method
222 planets.forEachIndexed { idx, planet -> planet.name = "$systemName ${idx + 1}" } in initRandom() method
246 (planets + star).forEach { planet -> in updateAll() method
247 val vector = planet.pos - ship.pos in updateAll()
249 if (d < planet.radius) { in updateAll()
250 if (planet is Star) ship.transit = true in updateAll()
259 GRAVITATION * (ship.mass * planet.mass) / d.pow(2) in updateAll()
270 .map { planet -> (planet.pos - ship.pos) to planet } in closestPlanet() method
278 val planet = closestPlanet() in solveAll() constant
280 if (planet.collides) { in solveAll()
[all …]
DVisibleUniverse.kt107 fun ZoomedDrawScope.drawGravitationalField(planet: Planet) { in ZoomedDrawScope()
116 val r = sqrt(GRAVITATION * planet.mass * SPACECRAFT_MASS / force) in ZoomedDrawScope()
119 center = planet.pos, in ZoomedDrawScope()
126 fun ZoomedDrawScope.drawPlanet(planet: Planet) { in ZoomedDrawScope()
127 with(planet) { in ZoomedDrawScope()
270 val v = landing.planet.pos + Vec2.makeWithAngleMag(landing.angle, landing.planet.radius) in ZoomedDrawScope()