content: package android.support.v7.app;
  
  class TwilightCalculator {
    private static final float ALTIDUTE_CORRECTION_CIVIL_TWILIGHT = -0.10471976F;
    
    private static final float C1 = 0.0334196F;
    
    private static final float C2 = 3.49066E-4F;
    
    private static final float C3 = 5.236E-6F;
    
    public static final int DAY = 0;
    
    private static final float DEGREES_TO_RADIANS = 0.017453292F;
    
    private static final float J0 = 9.0E-4F;
    
    public static final int NIGHT = 1;
    
    private static final float OBLIQUITY = 0.4092797F;
    
    private static final long UTC_2000 = 946728000000L;
    
    private static TwilightCalculator sInstance;
    
    public int state;
    
    public long sunrise;
    
    public long sunset;
    
    static TwilightCalculator getInstance() {
      if (sInstance == null)
        sInstance = new TwilightCalculator(); 
      return sInstance;
    }
    
    public void calculateTwilight(long paramLong, double paramDouble1, double paramDouble2) {
      float f1 = (float)(paramLong - 946728000000L) / 8.64E7F;
      float f2 = 0.01720197F * f1 + 6.24006F;
      double d1 = f2;
      double d2 = Math.sin(d1) * 0.03341960161924362D + d1 + Math.sin((2.0F * f2)) * 3.4906598739326E-4D + Math.sin((f2 * 3.0F)) * 5.236000106378924E-6D + 1.796593063D + Math.PI;
      paramDouble2 = -paramDouble2 / 360.0D;
      paramDouble2 = ((float)Math.round((f1 - 9.0E-4F) - paramDouble2) + 9.0E-4F) + paramDouble2 + Math.sin(d1) * 0.0053D + Math.sin(2.0D * d2) * -0.0069D;
      d2 = Math.asin(Math.sin(d2) * Math.sin(0.4092797040939331D));
      paramDouble1 = 0.01745329238474369D * paramDouble1;
      paramDouble1 = (Math.sin(-0.10471975803375244D) - Math.sin(paramDouble1) * Math.sin(d2)) / Math.cos(paramDouble1) * Math.cos(d2);
      if (paramDouble1 >= 1.0D) {
        this.state = 1;
        this.sunset = -1L;
        this.sunrise = -1L;
        return;
      } 
      if (paramDouble1 <= -1.0D) {
        this.state = 0;
        this.sunset = -1L;
        this.sunrise = -1L;
        return;
      } 
      paramDouble1 = (float)(Math.acos(paramDouble1) / 6.283185307179586D);
      this.sunset = Math.round((paramDouble2 + paramDouble1) * 8.64E7D) + 946728000000L;
      long l = Math.round((paramDouble2 - paramDouble1) * 8.64E7D) + 946728000000L;
      this.sunrise = l;
      if (l < paramLong && this.sunset > paramLong) {
        this.state = 0;
      } else {
        this.state = 1;
      } 
    }
  }
  
  
  /* Location:              F:\何章易\项目文件夹\项目24\va\classes_merge.jar!\android\support\v7\app\TwilightCalculator.class
   * Java compiler version: 6 (50.0)
   * JD-Core Version:       1.1.3
   */