i got ```cs Matrix2X2<float> rotMat = new((float)Math.Cos(rotation), (float)Math.Sin(rotatio

i got
        Matrix2X2<float> rotMat = new((float)Math.Cos(rotation), (float)Math.Sin(rotation),
            (float)-Math.Sin(rotation), (float)Math.Cos(rotation));

        mappedData.VertexPtr[0].Position = (Vector2)Matrix2X2.Multiply(new Vector2D<float>(mappedData.VertexPtr[0].Position.X, mappedData.VertexPtr[0].Position.Y), rotMat) + position;
        mappedData.VertexPtr[1].Position = (Vector2)Matrix2X2.Multiply(new Vector2D<float>(mappedData.VertexPtr[1].Position.X, mappedData.VertexPtr[1].Position.Y), rotMat) + position;
        mappedData.VertexPtr[2].Position = (Vector2)Matrix2X2.Multiply(new Vector2D<float>(mappedData.VertexPtr[2].Position.X, mappedData.VertexPtr[2].Position.Y), rotMat) + position;
        mappedData.VertexPtr[3].Position = (Vector2)Matrix2X2.Multiply(new Vector2D<float>(mappedData.VertexPtr[3].Position.X, mappedData.VertexPtr[3].Position.Y), rotMat) + position;
but the output doesnt make sense
unknown.png
Was this page helpful?