How to rotate a triangle 90 ° anticlockwise around point o?

How to rotate a triangle 90 ° anticlockwise around point o?

Connect the three vertices of the triangle with O, and rotate the connecting line 90 ° to connect the later points