lib/PHPPdf/Util.php
public static function convertAngleValue($value)
    {
        if($value !== null && strpos($value, 'deg') !== false)
        {
            $value = (float) $value;
            $value = deg2rad($value);
        }
        
        return $value !== null ? ((float) $value) : null;
    }
public static function convertAngleValue($value)
    {
        if($value !== null && strpos($value, 'deg') !== false)
        {
            $value = (float) $value;
            $value = deg2rad($value);
        }
        
        return $value !== null ? ((float) $value) : null;
    }
public static function convertAngleValue ( $ value ) { if ( $ value !== null && strpos ( $ value , 'deg' ) !== false ) { $ value = ( float ) $ value ; $ value = deg2rad ( $ value ) ; } return $ value !== null ? ( ( float ) $ value ) : null ; }
Converts angle value to radians.

When value is "deg" suffixed, it means value is in degrees.

@return float|null angle in radians or null
Converts angle value to radians .