Exemplo n.º 1
0
 public void ToVectorF()
 {
     double x = 23.4;
       double y = -11.0;
       double z = 0.0;
       double w = 0.3;
       double[] elementsD = new[] { x, y, z, w };
       float[] elementsF = new[] { (float)x, (float)y, (float)z, (float)w };
       VectorD vectorD = new VectorD(elementsD);
       VectorF vectorF = vectorD.ToVectorF();
       Assert.AreEqual(new VectorF(elementsF), vectorF);
 }