How Can I rotate a triangle's vertices in 2d space?

here’s my rotation matrix, I’ve tried to follow some examples but my results are weird and obviously incorrect, I should also note that this object rotates by following the players position and can therefore rotate clockwise and anticlockwise.

public void rotateVertices(){
		double cos = Math.cos(angleRot);
		double sin = Math.sin(angleRot);
		
		double centerX = x + 32;
		double centerY = y + 32;
		
		vertices[0] = new Vector2(((centerX + (cos * (x + 25) - centerX) + sin * ((y + 13) - centerY))), (centerY + (sin * (y + 13 - centerY) + cos * ((y + 13) - centerY))));
		vertices[1] = new Vector2(((centerX + (cos * (x + 64) - centerX) + sin * ((y + 33) - centerY))), (centerY + (sin * (y + 33 - centerY) + cos * ((y + 33) - centerY))));
		vertices[2] = new Vector2(((centerX + (cos * (x + 25) - centerX) + sin * ((y + 53) - centerY))), (centerY + (sin * (y + 53 - centerY) + cos * ((y + 53) - centerY))));
		 
	}