src/Common.php
public static function adjust_lon($x)
    {
        return (abs($x) < M_PI)
            ? $x
            : ($x - (static::sign($x) * static::TWO_PI));
    }
public static function adjust_lon($x)
    {
        return (abs($x) < M_PI)
            ? $x
            : ($x - (static::sign($x) * static::TWO_PI));
    }
public static function adjust_lon ( $ x ) { return ( abs ( $ x ) < M_PI ) ? $ x : ( $ x - ( static :: sign ( $ x ) * static :: TWO_PI ) ) ; }
Adjust longitude to -180 to 180; input in radians

@param float $x
@return float
Adjust longitude to - 180 to 180 ; input in radians