25 lines
764 B
Java
25 lines
764 B
Java
package o;
|
|
|
|
import com.google.android.gms.maps.model.LatLng;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class yZd {
|
|
private double e;
|
|
|
|
public yZd(double d) {
|
|
this.e = d;
|
|
}
|
|
|
|
public final C1026USy b(LatLng latLng) {
|
|
double d = latLng.longitude / 360.0d;
|
|
double sin = Math.sin(Math.toRadians(latLng.latitude));
|
|
double log = (Math.log((sin + 1.0d) / (1.0d - sin)) * 0.5d) / (-6.283185307179586d);
|
|
double d2 = this.e;
|
|
return new C1026USy((d + 0.5d) * d2, (log + 0.5d) * d2);
|
|
}
|
|
|
|
public final LatLng d(HTs hTs) {
|
|
return new LatLng(90.0d - Math.toDegrees(Math.atan(Math.exp(((-(0.5d - (hTs.e / this.e))) * 2.0d) * 3.141592653589793d)) * 2.0d), ((hTs.d / this.e) - 0.5d) * 360.0d);
|
|
}
|
|
}
|