examples/plot_alignment_simulated_2D_data.py
def _rotate(origin, point, angle):
    """Rotate a point counterclockwise by a given angle around a given origin.
    """
    ox, oy = origin
    px, py = point
    qx = ox + math.cos(angle) * (px - ox) - math.sin(angle) * (py - oy)
    qy = oy + math.sin(angle) * (px - ox) + math.cos(angle) * (py - oy)
    return qx, qy
Rotate a point counterclockwise by a given angle around a given origin.
    
Rotate a point counterclockwise by a given angle around a given origin.
Rotate a point counterclockwise by a given angle around a given origin .
def _rotate(origin, point, angle):
    ox, oy = origin
    px, py = point
    qx = ox + math.cos(angle) * (px - ox) - math.sin(angle) * (py - oy)
    qy = oy + math.sin(angle) * (px - ox) + math.cos(angle) * (py - oy)
    return qx, qy
def _rotate ( origin , point , angle ) : ox , oy = origin px , py = point qx = ox + math . cos ( angle ) * ( px - ox ) - math . sin ( angle ) * ( py - oy ) qy = oy + math . sin ( angle ) * ( px - ox ) + math . cos ( angle ) * ( py - oy ) return qx , qy
Rotate a point counterclockwise by a given angle around a given origin.
Rotate a point counterclockwise by a given angle around a given origin .
"""Rotate a point counterclockwise by a given angle around a given origin.
    """
origin
point
angle