Exemple #1
0
        public static Vector2Container operator -(Vector2Container v1, Vector2Container v2)
        {
            Vector2Container result = Pool <Vector2Container> .GetTemporalIfFunctionEnabled();

            MVector.RemoveFrom(ref v1.Vector, ref v2.Vector, ref result.Vector);
            return(result);
        }
Exemple #2
0
        public static Vector2Container operator *(Vector2Container v, float scalar)
        {
            Vector2Container result = Pool <Vector2Container> .GetTemporalIfFunctionEnabled();

            MVector.ScalarProduct(ref v.Vector, scalar, ref result.Vector);
            return(result);
        }
Exemple #3
0
 public void Subtract(Vector2Container v)
 {
     Subtract(ref v.Vector);
 }
Exemple #4
0
 public void Add(Vector2Container v)
 {
     Add(ref v.Vector);
 }
Exemple #5
0
 public void Set(Vector2Container v)
 {
     Set(ref v.Vector);
 }