Exemplo n.º 1
0
        public void TensorFieldTest()
        {
            List <List <float> > polylinesX = new List <List <float> >();
            List <List <float> > polylinesY = new List <List <float> >();
            List <float>         x          = new List <float>()
            {
                0.0f, 1.0f
            };
            List <float> y = new List <float>()
            {
                0.0f, 0.0f
            };

            polylinesX.Add(x);
            polylinesY.Add(y);
            TensorField tf = new TensorField(null, null, polylinesX, polylinesY);

            Assert.AreEqual(tf.GetMajorEigenVectorX()[0, 0], 1.0f);
            Assert.AreEqual(tf.GetMajorEigenVectorY()[0, 0], 0.0f);
        }
Exemplo n.º 2
0
 public float[,] GetMajorEigenVectorY()
 {
     return(Tensors.GetMajorEigenVectorY());
 }