code: public function calculateFinalBearing(Coordinate $point1, Coordinate $point2): float
      {
          $initialBearing = $this->calculateBearing($point2, $point1);
  
          return fmod($initialBearing + 180, 360);
      }
docs: Calculates the final bearing between the two points.
  
  @param Coordinate $point1
  @param Coordinate $point2
  
  @return float