import math


def rotate2d(pos, rad):
    """
    Rotates point on angle
    :param pos: point
    :param rad: angle in radians
    :return:
    """
    x, y = pos
    s, c = math.sin(rad), math.cos(rad)
    return x * c - y * s, y * c + x * s