/// <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); }
public Point(MyVector vector) { X = vector[0]; Y = vector[1]; }