Vector3.dotProduct()

Return the dot product of this vector

Parameters

NameTypeDescription
1vVector3

Return value

number

The dot product

Usage

import {Vector3} from '@lcluber/type6js';

let vector1 = new Vector3(1,2,3);
let vector2 = new Vector3(2,2,2);
let dotProduct = vector1.dotProduct(vector2);
console.log(dotProduct);