Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 public void GetScreenVectorToWorld(Vec2 argScreen, Vec2 argWorld)
 {
     inv.Set(Box.R);
     inv.InvertLocal();
     inv.MulToOut(argScreen, argWorld);
     if (YFlip)
     {
         yFlipMatInv.MulToOut(argWorld, argWorld);
     }
 }
Esempio n. 3
0
 public virtual void SetRotation(Fix degrees)
 {
     u.Set(degrees);
 }
Esempio n. 4
0
 public void Set(Vec2 position, float rotation)
 {
     Position = position;
     R.Set(rotation);
 }