Home
last modified time | relevance | path

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

/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java119 private static final float sBallDiameter = 0.004f; field in AccelerometerPlayActivity.SimulationView
120 private static final float sBallDiameter2 = sBallDiameter * sBallDiameter;
284 final float c = (0.5f * (sBallDiameter - d)) / d; in update()
339 mDstWidth = (int) (sBallDiameter * mMetersToPixelsX + 0.5f); in SimulationView()
340 mDstHeight = (int) (sBallDiameter * mMetersToPixelsY + 0.5f); in SimulationView()
354 mHorizontalBound = ((w / mMetersToPixelsX - sBallDiameter) * 0.5f); in onSizeChanged()
355 mVerticalBound = ((h / mMetersToPixelsY - sBallDiameter) * 0.5f); in onSizeChanged()