Skip to content
Snippets Groups Projects
Commit ceb10a64 authored by Christoph-Anton Schwierz's avatar Christoph-Anton Schwierz
Browse files

vecDotProduct

parent bb1a14d4
No related branches found
No related tags found
No related merge requests found
......@@ -48,4 +48,9 @@ export function vecNormalize(vec: Array<number>){
return normalized;
}
export function vecDotProduct(vecOne: Array<number>, vecTwo: Array<number>){
let dotProduct = vecOne[0]*vecTwo[0] + vecOne[1]*vecTwo[1] + vecOne[2]*vecTwo[2];
return dotProduct;
}
//
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment