Пример #1
0
 public Scientrace.Vector dotProductMatrixWithVector(Scientrace.Vector a, Scientrace.Vector b, Scientrace.Vector c, Scientrace.Vector aVector)
 {
     Scientrace.Vector retvec = new Scientrace.Vector(0, 0, 0);
     Scientrace.Vector tvec   = null;
     for (int irow = 0; irow <= 2; irow++)
     {
         tvec = new Vector(a.readIndex(irow), b.readIndex(irow), c.readIndex(irow));
         retvec.onIndexWrite(irow, tvec.dotProduct(aVector));
     }
     return(retvec);
 }