import math


def rotateZ(_x, _y, _z, angle):
    """ Rotates the point around the Z axis by the given angle in degrees. """
    rad = angle * math.pi / 180
    cosa = math.cos(rad)
    sina = math.sin(rad)
    x = _x * cosa - _y * sina
    y = _x * sina + _y * cosa
    z = _z
    return x, y, z