Box2D.Common.Mat22.MulToOut C# (CSharp) Method

MulToOut() public method

public MulToOut ( Mat22 r, Mat22 result ) : void
r Mat22
result Mat22
return void
        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;
        }

Same methods

Mat22::MulToOut ( Mat22 a, Mat22 b, Mat22 result ) : void
Mat22::MulToOut ( Mat22 r, Vec2 v, Vec2 result ) : void
Mat22::MulToOut ( Vec2 v, Vec2 result ) : void