* @function LevelRenderer.Tool.Vector.prototype.min * @description 求两个向量最小值。 * @param {Vector2} out - 基础向量。 * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {Vector2} 结果。
(out, v1, v2)
| 288 | * @return {Vector2} 结果。 |
| 289 | */ |
| 290 | min(out, v1, v2) { |
| 291 | out[0] = Math.min(v1[0], v2[0]); |
| 292 | out[1] = Math.min(v1[1], v2[1]); |
| 293 | return out; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * @function LevelRenderer.Tool.Vector.prototype.max |
no outgoing calls
no test coverage detected