def _rotate(x, y, angle):
    """Rotate (x, y) point of given angle around (0, 0)."""
    return x * cos(angle) - y * sin(angle), y * cos(angle) + x * sin(angle)
Rotate (x, y) point of given angle around (0, 0).
weasyprint/svg/path.py