Exemplo n.º 1
0
        public void Vector3_Fna_Operator()
        {
            var a = new Vector3_Fna(1, 1, 1);
            var b = new Vector3_Fna(1, 1, 1);

            var iterations = Iterations;

            while (iterations-- > 0)
            {
                a = a + b;
            }
        }
Exemplo n.º 2
0
        public void Vector3_Fna_Add_By_Ref()
        {
            var a = new Vector3_Fna(1, 1, 1);
            var b = new Vector3_Fna(1, 1, 1);

            var iterations = Iterations;

            while (iterations-- > 0)
            {
                Vector3_Fna.Add(ref a, ref b, out a);
            }
        }
Exemplo n.º 3
0
 public static void Add(ref Vector3_Fna value1, ref Vector3_Fna value2, out Vector3_Fna result)
 {
     result.X = value1.X + value2.X;
     result.Y = value1.Y + value2.Y;
     result.Z = value1.Z + value2.Z;
 }