Q:

Can rotating a polygon 180 degree produce its reflection?

I have written code for Reflection in Java in the traditional way , I know how to make reflection of a Polygon.
My question is about trying something new, I was thinking If I rotate a polygon at 180 degrees will it produce the reflection of the polygon?? I think it will produce its reflection but will it be mathematically acceptable??

A:

It depends on the shape. Some polygons have rotational symmetry, some have reflectional symmetry. If you rotate a rectangle by 180 degrees, or reflect it in a suitable axis, you get back the same shape.
But generally, no. They are different operations. If you rotate a shape by 180 degrees, you get an upside down shape, not a reflected shape.

A:

Think of a triangle with a 90°angle:
|\
|_\

Apply a 180° rotation:
 _
\ |
 \|

That's not the reflection of the triangle
On some shape like squares or rectangles it will work but usually it won't.

