/// <summary> /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> public static Mat22 operator +(Mat22 a, Mat22 b) { Mat22 c = new Mat22(); c.Set(a.Col1 + b.Col1, a.Col2 + b.Col2); return(c); }
public void GetScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld) { inv.Set(Box.R); inv.InvertLocal(); inv.MulToOut(argScreen, argWorld); if (YFlip) { yFlipMatInv.MulToOut(argWorld, argWorld); } }
public virtual void SetRotation(Fix degrees) { u.Set(degrees); }
public void Set(Vec2 position, float rotation) { Position = position; R.Set(rotation); }