Respuesta :
For every point A = (x,y) in your figure, a 180 degree counterclockwise rotation about the origin will result in a point A' = (x', y') where:
x' = x * cos(180) - y * sin(180)
y' = x * sin(180) + y * cos(180)
Happy-fun time fact: This is equivalent to using a rotation matrix from Linear Algebra!
Because a rotation is an isometry, you only have to rotate each vertex of a polygon, and then connect the respective rotated vertices to get the rotated polygon.
You can rotate a closed curve as well, but you must figure out a way to rotate the infinite number of points in the curve. We are able to do this with straight lines above due to the property of isometries, which preserves distances between points.
x' = x * cos(180) - y * sin(180)
y' = x * sin(180) + y * cos(180)
Happy-fun time fact: This is equivalent to using a rotation matrix from Linear Algebra!
Because a rotation is an isometry, you only have to rotate each vertex of a polygon, and then connect the respective rotated vertices to get the rotated polygon.
You can rotate a closed curve as well, but you must figure out a way to rotate the infinite number of points in the curve. We are able to do this with straight lines above due to the property of isometries, which preserves distances between points.