* @function LevelRenderer.Tool.Vector.prototype.max * @description 求两个向量最大值。 * * @param {Vector2} out - 基础向量。 * @param {Vector2} v1 - 向量 v1。 * @param {Vector2} v2 - 向量 v2。 * @return {Vector2} 结果。
(out, v1, v2)
| 303 | * @return {Vector2} 结果。 |
| 304 | */ |
| 305 | max(out, v1, v2) { |
| 306 | out[0] = Math.max(v1[0], v2[0]); |
| 307 | out[1] = Math.max(v1[1], v2[1]); |
| 308 | return out; |
| 309 | } |
| 310 | |
| 311 | |
| 312 | /** |
no outgoing calls
no test coverage detected