예제 #1
0
 public void ToArray()
 {
     double x = 23.4;
       double y = -11.0;
       double z = 0.0;
       double w = 0.3;
       VectorD v = new VectorD(new[] { x, y, z, w });
       double[] values = v.ToArray();
       Assert.AreEqual(x, values[0]);
       Assert.AreEqual(y, values[1]);
       Assert.AreEqual(z, values[2]);
       Assert.AreEqual(w, values[3]);
       Assert.AreEqual(4, values.Length);
 }