44 lines
1.4 KiB
Java
44 lines
1.4 KiB
Java
package com.google.android.gms.maps;
|
|
|
|
import android.graphics.Point;
|
|
import android.os.RemoteException;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
import com.google.android.gms.maps.internal.IProjectionDelegate;
|
|
import com.google.android.gms.maps.model.LatLng;
|
|
import com.google.android.gms.maps.model.RuntimeRemoteException;
|
|
import com.google.android.gms.maps.model.VisibleRegion;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class Projection {
|
|
private final IProjectionDelegate zzbn;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public Projection(IProjectionDelegate iProjectionDelegate) {
|
|
this.zzbn = iProjectionDelegate;
|
|
}
|
|
|
|
public final LatLng fromScreenLocation(Point point) {
|
|
try {
|
|
return this.zzbn.fromScreenLocation(ObjectWrapper.wrap(point));
|
|
} catch (RemoteException e) {
|
|
throw new RuntimeRemoteException(e);
|
|
}
|
|
}
|
|
|
|
public final Point toScreenLocation(LatLng latLng) {
|
|
try {
|
|
return (Point) ObjectWrapper.unwrap(this.zzbn.toScreenLocation(latLng));
|
|
} catch (RemoteException e) {
|
|
throw new RuntimeRemoteException(e);
|
|
}
|
|
}
|
|
|
|
public final VisibleRegion getVisibleRegion() {
|
|
try {
|
|
return this.zzbn.getVisibleRegion();
|
|
} catch (RemoteException e) {
|
|
throw new RuntimeRemoteException(e);
|
|
}
|
|
}
|
|
}
|