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

MulTrans() public method

Multiply another matrix by the transpose of this one (transpose of this one on left). djm: optimized
public MulTrans ( Mat22 b ) : Mat22
b Mat22
return Mat22
        public Mat22 MulTrans(Mat22 b)
        {
            /*
            * Vec2 c1 = new Vec2(Vec2.dot(this.ex, B.ex), Vec2.dot(this.ey, B.ex)); Vec2 c2 = new
            * Vec2(Vec2.dot(this.ex, B.ey), Vec2.dot(this.ey, B.ey)); Mat22 C = new Mat22(); C.set(c1, c2);
            * return C;
            */

            Mat22 C = new Mat22();

            C.Ex.X = Vec2.Dot(this.Ex, b.Ex);
            C.Ex.Y = Vec2.Dot(this.Ey, b.Ex);

            C.Ey.X = Vec2.Dot(this.Ex, b.Ey);
            C.Ey.Y = Vec2.Dot(this.Ey, b.Ey);
            return C;
        }

Same methods

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