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

Mul() public method

Multiply another matrix by this one (this one on left). djm optimized
public Mul ( Mat22 r ) : Mat22
r Mat22
return Mat22
        public Mat22 Mul(Mat22 r)
        {
            /*
            * Mat22 C = new Mat22();C.set(this.mul(R.ex), this.mul(R.ey));return C;
            */
            Mat22 C = new Mat22();
            C.Ex.X = Ex.X * r.Ex.X + Ey.X * r.Ex.Y;
            C.Ex.Y = Ex.Y * r.Ex.X + Ey.Y * r.Ex.Y;
            C.Ey.X = Ex.X * r.Ey.X + Ey.X * r.Ey.Y;
            C.Ey.Y = Ex.Y * r.Ey.X + Ey.Y * r.Ey.Y;
            // C.set(ex,col2);
            return C;
        }

Same methods

Mat22::Mul ( Mat22 a, Mat22 b ) : Mat22
Mat22::Mul ( Mat22 r, Vec2 v ) : Vec2
Mat22::Mul ( Vec2 v ) : Vec2