예제 #1
0
  @Override
  public void onAzimuthChange(float newAzimuth) {
    azimuth = newAzimuth;

    smoothAzimuth = calculateSmoothAzimuth(newAzimuth);

    if (measureFragment != null) {
      measureFragment.rotateView(360 - (float) CircleUtils.radiansToDegree(smoothAzimuth));
    }
    if (currentFragment == resultFragment) {
      resultFragment.onSmoothAzimuthChange(smoothAzimuth);
    }
  }