* return the angle between this vector and the passed one * @param v other vector * @returns angle in radians
(v: Vector2d | Vector3d)
| 450 | * @returns angle in radians |
| 451 | */ |
| 452 | angle(v: Vector2d | Vector3d) { |
| 453 | return Math.acos(clamp(this.dot(v) / (this.length() * v.length()), -1, 1)); |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * project this vector on to another vector. |
no test coverage detected