def rotated_polygon(xy, ox, oy, angle):
    theta = ((angle / 180.0) * pi)
    st = sin(theta)
    ct = cos(theta)
    xy = np.asarray(xy, dtype='d')
    (x, y) = (xy[:, 0], xy[:, 1])
    x1 = (x - ox)
    y1 = (y - oy)
    x2 = ((ct * x1) + ((- st) * y1))
    y2 = ((st * x1) + (ct * y1))
    xp = (x2 + ox)
    yp = (y2 + oy)
    return np.hstack((xp.reshape(((- 1), 1)), yp.reshape(((- 1), 1))))
def rotated_polygon(xy, ox, oy, angle):
    theta = ((angle / 180.0) * pi)
    st = sin(theta)
    ct = cos(theta)
    xy = np.asarray(xy, dtype='d')
    (x, y) = (xy[:, 0], xy[:, 1])
    x1 = (x - ox)
    y1 = (y - oy)
    x2 = ((ct * x1) + ((- st) * y1))
    y2 = ((st * x1) + (ct * y1))
    xp = (x2 + ox)
    yp = (y2 + oy)
    return np.hstack((xp.reshape(((- 1), 1)), yp.reshape(((- 1), 1))))