ok so I have a 2D shape made from lines, I have a Vertex position color for each point on the shape, I want to rotate the shape, the problem is at the moment I am trying to rotate it using a rotation matrix but the thing just get stretched vertically, any help to how I can solve this?
The lines of code that rotate it are as so...
mOffsets[i].Position.X = (
float)((Math.Cos(angle) * mOffsets[i].Position.X) + (-(Math.Sin(angle)) * mOffsets[i].Position.X));
mOffsets[i].Position.Y = (float)((Math.Sin(angle) * mOffsets[i].Position.Y) + (Math.Cos(angle) * mOffsets[i].Position.Y));
mOffsets is a VertexPositionColor array, I need to rotate these offsets around the origin...
Any help is appreciated.