* @function LevelRenderer.Tool.Vector.prototype.dot * @description 向量点乘。 * * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {number} 向量点乘。
(v1, v2)
| 166 | * @return {number} 向量点乘。 |
| 167 | */ |
| 168 | dot(v1, v2) { |
| 169 | return v1[0] * v2[0] + v1[1] * v2[1]; |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * @function LevelRenderer.Tool.Vector.prototype.scale |
no outgoing calls
no test coverage detected