Advertisement
maxrusmos

Untitled

Mar 20th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public static dynamic VectorScalarProduct(Vector<T> A, Vector<T> B) {
  2. dynamic result;
  3. for (int i = 0; i < A._coordsArr.Length; i++) {
  4. result += (dynamic)A._coordsArr[i] * (dynamic)B._coordsArr[i];
  5. }
  6. return result;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement