src/Rasterization/Path/SVGArcApproximator.php
private static function vectorAngle($ux, $uy, $vx, $vy)
    {
        $ta = atan2($uy, $ux);
        $tb = atan2($vy, $vx);

        if ($tb >= $ta) {
            return $tb - $ta;
        }

        return 2 * M_PI - ($ta - $tb);
    }
private static function vectorAngle($ux, $uy, $vx, $vy)
    {
        $ta = atan2($uy, $ux);
        $tb = atan2($vy, $vx);

        if ($tb >= $ta) {
            return $tb - $ta;
        }

        return 2 * M_PI - ($ta - $tb);
    }
private static function vectorAngle ( $ ux , $ uy , $ vx , $ vy ) { $ ta = atan2 ( $ uy , $ ux ) ; $ tb = atan2 ( $ vy , $ vx ) ; if ( $ tb >= $ ta ) { return $ tb - $ ta ; } return 2 * M_PI - ( $ ta - $ tb ) ; }
Computes the angle between two given vectors.

@param float $ux First vector's x coordinate.
@param float $uy First vector's y coordinate.
@param float $vx Second vector's x coordinate.
@param float $vy Second vector's y coordinate.

@return float The angle, in radians.
Computes the angle between two given vectors .