def cw(u, v):
    """
    Returns True if v is to the right of u, that is,
          the shortest rotation from u to v is cw, turn right
    False otherwise
    """
    return ((u[0] * v[1] - u[1] * v[0]) < 0)