* Returns the dot product of this vector and another vector. * @param {Vector} v: Vector to dot * @returns {number} Dot product
(v: Vector)
| 84 | * @returns {number} Dot product |
| 85 | */ |
| 86 | dot(v: Vector) { |
| 87 | return this.x * v.x + this.y * v.y + this.z * v.z; |
| 88 | } |
| 89 | /** |
| 90 | * Cross product of two vectors. |
| 91 | * @param {Vector} a: Vector to cross |
no outgoing calls
no test coverage detected