src/Rasterization/Path/SVGArcApproximator.php
private static function calculatePoint($center, $rx, $ry, $xa, $angle)
    {
        $a = $rx * cos($angle);
        $b = $ry * sin($angle);

        return array(
            cos($xa) * $a - sin($xa) * $b + $center[0],
            sin($xa) * $a + cos($xa) * $b + $center[1],
        );
    }
private static function calculatePoint($center, $rx, $ry, $xa, $angle)
    {
        $a = $rx * cos($angle);
        $b = $ry * sin($angle);

        return array(
            cos($xa) * $a - sin($xa) * $b + $center[0],
            sin($xa) * $a + cos($xa) * $b + $center[1],
        );
    }
private static function calculatePoint ( $ center , $ rx , $ ry , $ xa , $ angle ) { $ a = $ rx * cos ( $ angle ) ; $ b = $ ry * sin ( $ angle ) ; return array ( cos ( $ xa ) * $ a - sin ( $ xa ) * $ b + $ center [ 0 ] , sin ( $ xa ) * $ a + cos ( $ xa ) * $ b + $ center [ 1 ] , ) ; }
Calculates a single point on an ellipsis described by its center
parameterization.

@param float[] $center The ellipse's center point (x, y).
@param float   $rx     The radius along the ellipse's x-axis.
@param float   $ry     The radius along the ellipse's y-axis.
@param float   $xa     The x-axis angle / the ellipse's rotation (radians).
@param float   $angle  The point's position on the ellipse.

@return float[] The calculated point as an (x, y) tuple.
Calculates a single point on an ellipsis described by its center parameterization .