示例#1
0
        /// <summary>
        /// Matrix-Vektor-Multiplikation
        /// </summary>
        /// <param name="myM"> Die Matrix </param>
        /// <param name="myV"> Der Vektor </param>
        /// <returns>MyVector-Objekt</returns>
        public static MyVector operator *(MyMatrix myM, MyVector myV)
        {
            MyVector erg = new MyVector();

            for (int a = 0; a < 3; a++)
            {
                for (int b = 0; b < 3; b++)
                {
                    erg[a] += myM[a, b] * myV[b];
                }
            }
            return(erg);
        }
示例#2
0
 public Point(MyVector vector)
 {
     X = vector[0];
     Y = vector[1];
 }