Prove that a convex \(n\)-gon is regular if and only if it is transformed into itself when it is rotated through an angle of \(360^{\circ}/n\) with respect to some point.