import math


def get_rotated_vector(vector, angle):
    """Returns rotated 2d vector for a given angle counter-clockwise.

    :param vector: of this vector a rotated version will be calculated
    :type vector: 2d list
    :param angle: vector will be rotated in this angle
    :type angle: float (arc degree)
    :rtype: rotated version of the vector
    """

    #Convert angle in radiant because of math.sin/cos
    angle = (angle * math.pi)/180
    length = math.sqrt(vector[0]*vector[0] + vector[1]*vector[1])
    sin_a = math.sin(angle)
    cos_a = math.cos(angle)
    #Rotation for a 2d vector
    #Equation for rotation matrix:
    #| cos( angle ) -sin( angle ) |   | x |   | rotated_x |
    #| sin( angle ) cos( angle )  | * | y | = | rotaded_y |
    result = [vector[0] * cos_a - vector[1] * sin_a,
              vector[0] * sin_a + vector[1] * cos_a]
    return result