public function calculateFinalBearing(Coordinate $point1, Coordinate $point2): float
    {
        $initialBearing = $this->calculateBearing($point2, $point1);

        return fmod($initialBearing + 180, 360);
    }
public function calculateFinalBearing(Coordinate $point1, Coordinate $point2): float
    {
        $initialBearing = $this->calculateBearing($point2, $point1);

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

@param Coordinate $point1
@param Coordinate $point2

@return float
Calculates the final bearing between the two points .