package com.google.android.m4b.maps.bj;

import com.google.android.m4b.maps.bu.bp;
import com.google.android.m4b.maps.bu.bw;

public final class ah
{
  private ag a = new ag();
  private float b = -1.0F;
  private boolean c = false;
  private String d = "";
  private int e;
  private float f;
  private float g;
  private float h;
  private float i;
  private boolean j;

  private void a(int paramInt1, int paramInt2, int paramInt3)
  {
    if (this.c);
    while (this.a.a(this.e, paramInt1, paramInt2, paramInt3))
      return;
    this.a = new ag();
    this.a.a(this.e, paramInt1, paramInt2, paramInt3);
  }

  private void b(bw parambw)
  {
    if (parambw != null);
    for (boolean bool = true; ; bool = false)
    {
      this.j = bool;
      if (this.j)
      {
        this.f = parambw.b();
        this.g = parambw.d();
        this.h = parambw.e();
        this.i = parambw.f();
      }
      return;
    }
  }

  public final void a(float paramFloat)
  {
    this.b = paramFloat;
  }

  public final void a(q paramq, bw parambw)
  {
    String str = paramq.h;
    if (this.d.equals(str))
      return;
    this.c = paramq.a;
    this.d = str;
    this.e = paramq.n;
    b(parambw);
    a(0, 0, 1);
  }

  public final void a(bw parambw)
  {
    if (!this.j)
      b(parambw);
    label197: 
    while (true)
    {
      return;
      if (Math.abs(this.h - parambw.e()) > 0.999F)
      {
        a(0, 1, 0);
        b(parambw);
        return;
      }
      if (this.j)
      {
        if (this.b >= 0.0F)
          break label101;
        new IllegalStateException("FOV not set").printStackTrace();
      }
      for (int k = 0; ; k = 1)
      {
        if (k == 0)
          break label197;
        a(1, 0, 0);
        b(parambw);
        return;
        label101: float f1 = parambw.b();
        float f2 = parambw.d();
        if (((this.f == f1) && (this.g == f2)) || (2.0F * bp.n((float)Math.acos(bp.h(this.g) * bp.h(f2) + bp.i(this.g) * bp.i(f2) * bp.i(this.f - f1))) <= this.b * this.i))
          break;
      }
    }
  }
}

/* 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.bj.ah
 * JD-Core Version:    0.6.2
 */