Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
phishman3579 committed Nov 20, 2013
1 parent 1f022df commit 80e47f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .classpath
Expand Up @@ -4,5 +4,6 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Expand Up @@ -200,6 +200,7 @@ public boolean onTouch(View view, MotionEvent me) {
return super.onTouchEvent(me);
};

@SuppressWarnings("unused")
protected void markerTouched(Marker marker) {
Log.w(TAG, "markerTouched() not implemented.");
}
Expand Down
Expand Up @@ -58,7 +58,7 @@ private static final float computeAlpha(float low, float high, float[] current,

float x1 = current[0], y1 = current[1], z1 = current[2];
float x2 = previous[0], y2 = previous[1], z2 = previous[2];
float distance = FloatMath.sqrt((float)(Math.pow((double) (x2 - x1), 2d) + Math.pow((double) (y2 - y1), 2d) + Math.pow((double) (z2 - z1), 2d)));
float distance = FloatMath.sqrt((float)(Math.pow((x2 - x1), 2d) + Math.pow((y2 - y1), 2d) + Math.pow((z2 - z1), 2d)));

if (distance < low) {
return ALPHA_STEADY;
Expand Down

0 comments on commit 80e47f9

Please sign in to comment.