package com.google.android.m4b.maps.ao;

import android.util.FloatMath;
import com.google.android.m4b.maps.bc.af;
import com.google.android.m4b.maps.bl.ad;
import com.google.android.m4b.maps.bl.ap;
import com.google.android.m4b.maps.bl.ap.e;
import com.google.android.m4b.maps.bl.g;
import com.google.android.m4b.maps.bn.b;
import com.google.android.m4b.maps.bn.c;
import com.google.android.m4b.maps.bn.d;

public final class v
{
  private int a = 0;
  private int b = 0;
  private int c = 0;
  private int d = 0;
  private int e = 0;
  private int f = 0;
  private int g = 0;
  private int h = 0;
  private w i = null;
  private final ap j;

  public v(ap paramap, w paramw)
  {
    this.j = paramap;
    this.i = paramw;
  }

  private void a(d paramd, int paramInt)
  {
    if (paramInt == 0);
    for (int k = 0; ; k = -1)
    {
      a(paramd, paramInt, k);
      return;
    }
  }

  private void f()
  {
    if (this.i != null)
    {
      this.e = (this.i.getWidth() - this.a - this.c);
      this.f = (this.i.getHeight() - this.b - this.d);
      this.g = (this.a + this.e / 2);
      this.h = (this.b + this.f / 2);
    }
  }

  public final float a(float paramFloat1, float paramFloat2, float paramFloat3, int paramInt)
  {
    return this.j.a(paramFloat1, paramFloat2, paramFloat3, paramInt);
  }

  public final float a(float paramFloat, int paramInt)
  {
    f();
    return a(paramFloat, this.g, this.h, paramInt);
  }

  public final float a(af paramaf)
  {
    return this.j.a(paramaf);
  }

  public final int a()
  {
    return this.a + this.c;
  }

  public final c a(c paramc, float paramFloat)
  {
    f();
    b localb = this.i.t();
    float f1 = paramFloat * (float)Math.pow(2.0D, localb.l() - paramc.a());
    float f2 = f1 * (float)(this.i.getWidth() / 2.0D - this.g);
    float f3 = f1 * (float)(this.i.getHeight() / 2.0D - this.h);
    float f4 = f2 * localb.r();
    float f5 = -f3 * localb.r() / FloatMath.cos(0.01745329F * localb.k());
    af localaf1 = localb.o();
    af localaf2 = localb.p();
    af localaf3 = new af(localaf1.f(), localaf1.g());
    af localaf4 = new af(localaf2.f(), localaf2.g());
    af.b(localaf3, f4, localaf3);
    af.b(localaf4, f5, localaf4);
    af localaf5 = paramc.c();
    float f6 = paramc.a();
    int k = localaf5.h();
    af localaf6 = localaf5.e(localaf3);
    af.a(localaf6, localaf4, localaf6);
    localaf6.a(k);
    return new c(localaf6, f6, paramc.d(), paramc.e(), 0.0F);
  }

  public final void a(float paramFloat1, float paramFloat2)
  {
    this.j.a(0.0F, 0.0F);
  }

  public final void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    this.a = paramInt1;
    this.b = paramInt2;
    this.c = paramInt3;
    this.d = paramInt4;
  }

  public final void a(af paramaf, int paramInt)
  {
    b localb = this.i.t();
    a(new c(paramaf, localb.l(), localb.k(), localb.j(), 0.0F), 300);
  }

  public final void a(ad paramad)
  {
    this.j.a(paramad);
  }

  public final void a(ap.e parame)
  {
    this.j.a(parame);
  }

  public final void a(g paramg)
  {
    this.j.a(paramg);
  }

  public final void a(d paramd, int paramInt1, int paramInt2)
  {
    if ((this.i != null) && ((this.a != 0) || (this.c != 0) || (this.b != 0) || (this.d != 0)));
    for (int k = 1; k != 0; k = 0)
    {
      c localc = a(paramd.b(), 1.0F);
      this.j.a(localc, paramInt1, paramInt2);
      return;
    }
    this.j.a(paramd, paramInt1, paramInt2);
  }

  public final int b()
  {
    return this.b + this.d;
  }

  public final void b(float paramFloat, int paramInt)
  {
    f();
    c localc = c();
    a(new c(localc.c(), paramFloat, localc.d(), localc.e(), localc.f()), paramInt);
  }

  public final c c()
  {
    return a(this.j.b(), -1.0F);
  }

  public final float d()
  {
    return this.j.a();
  }

  public final float e()
  {
    return this.j.c();
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.ao.v
 * JD-Core Version:    0.6.2
 */