rename variable

This commit is contained in:
Hannes Janetzek 2013-02-04 17:39:10 +01:00
parent 8fb7dc831c
commit 93fde349c6

View File

@ -121,7 +121,7 @@ public class MapViewPosition {
}
public synchronized boolean getMapPosition(final MapPosition mapPosition,
final float[] coords) {
final float[] projection) {
// if (!isValid())
// return false;
@ -148,16 +148,16 @@ public class MapViewPosition {
if (mapPosition.viewMatrix != null)
System.arraycopy(mViewMatrix, 0, mapPosition.viewMatrix, 0, 16);
if (coords == null)
if (projection == null)
return true;
float t = getZ(1);
float t2 = getZ(-1);
unproject(1, -1, t, coords, 0); // top-right
unproject(-1, -1, t, coords, 2); // top-left
unproject(-1, 1, t2, coords, 4); // bottom-left
unproject(1, 1, t2, coords, 6); // bottom-right
unproject(1, -1, t, projection, 0); // top-right
unproject(-1, -1, t, projection, 2); // top-left
unproject(-1, 1, t2, projection, 4); // bottom-left
unproject(1, 1, t2, projection, 6); // bottom-right
return true;
}