I have tried everything around the internet and nothing worked. I'm pretty sure I am doing something stupidly wrong.
Basically, I have a line which is drawn (startX, startY, endX, endY) and I want to rotate it around the center (where the player's X and Y is).
Here's the image:
![](https://uploads.gamedev.net/forums/monthly_2020_06/0a99f399de85430694a12aa9b96aea77.line.png)
The little dot is the center
I actually have a triangle::
![](https://uploads.gamedev.net/forums/monthly_2020_06/332d0c77c5294963a89db7a674bf2cc2.triangle.png)
So I have three lines, each of them have their startX, startY, endX, endY coordinates.
I am trying to do it step by step, so how would I even rotate one line first?