CoordinateRateCalculator.php
public static function run($size, &$c1, &$c2)
    {
        if( $size > 0 )
        {
            if( $size <= $c2 )
            {
                $rate = $c2 / $size; $c2 = $size; $c1 = $c1 / $rate;
            }
            else
            {
                $rate = $size / $c2; $c2 = $size; $c1 = $c1 * $rate;
            }
        }
    }
public static function run($size, &$c1, &$c2)
    {
        if( $size > 0 )
        {
            if( $size <= $c2 )
            {
                $rate = $c2 / $size; $c2 = $size; $c1 = $c1 / $rate;
            }
            else
            {
                $rate = $size / $c2; $c2 = $size; $c1 = $c1 * $rate;
            }
        }
    }
public static function run ( $ size , & $ c1 , & $ c2 ) { if ( $ size > 0 ) { if ( $ size <= $ c2 ) { $ rate = $ c2 / $ size ; $ c2 = $ size ; $ c1 = $ c1 / $ rate ; } else { $ rate = $ size / $ c2 ; $ c2 = $ size ; $ c1 = $ c1 * $ rate ; } } }
Calculates the ratio according to the entered numerical value.

@param float $size
@param float &$c1
@param float &$c2
Calculates the ratio according to the entered numerical value .