Exemple #1
0
 public void TestAngleWith1()
 {
     Scientrace.Vector v1, v2;
     v1 = new Scientrace.Vector(1, 1, 1);
     v2 = new Scientrace.Vector(-1, -1, -1);
     Assert.AreEqual(Math.PI, v1.angleWith(v2));
 }
Exemple #2
0
 public void TestAngleWith1()
 {
     Scientrace.Vector v1, v2;
     v1 = new Scientrace.Vector(1, 1, 1);
     v2 = new Scientrace.Vector(-1, -1, -1);
     Assert.AreEqual(Math.PI, v1.angleWith(v2));
 }
Exemple #3
0
 public void TestZeroAngleWith()
 {
     Scientrace.Vector v1, v2;
     v1 = new Scientrace.Vector(1, 1, 1);
     v2 = new Scientrace.Vector(1, 1, 1);
     Assert.AreEqual(0, v1.angleWith(v2));
 }
Exemple #4
0
 public void TestZeroAngleWith()
 {
     Scientrace.Vector v1, v2;
     v1 = new Scientrace.Vector(1, 1, 1);
     v2 = new Scientrace.Vector(1, 1, 1);
     Assert.AreEqual(0, v1.angleWith(v2));
 }