* return the dot product of this vector and the passed one * @param v other vector * @returns The dot product.
(v: Vector2d | Vector3d)
| 336 | * @returns The dot product. |
| 337 | */ |
| 338 | dot(v: Vector2d | Vector3d) { |
| 339 | return this.x * v.x + this.y * v.y + this.z * ("z" in v ? v.z : this.z); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * calculate the cross product of this vector and the passed one |
no outgoing calls
no test coverage detected