public void MulToOut(Mat22 r, Mat22 result)
{
float tempy1 = Ex.Y * r.Ex.X + Ey.Y * r.Ex.Y;
float tempx1 = Ex.X * r.Ex.X + Ey.X * r.Ex.Y;
result.Ex.X = tempx1;
result.Ex.Y = tempy1;
float tempy2 = Ex.Y * r.Ey.X + Ey.Y * r.Ey.Y;
float tempx2 = Ex.X * r.Ey.X + Ey.X * r.Ey.Y;
result.Ey.X = tempx2;
result.Ey.Y = tempy2;
}