* 求两个向量最大值 * @param {Vector2} out * @param {Vector2} v1 * @param {Vector2} v2
(out, v1, v2)
| 1142 | * @param {Vector2} v2 |
| 1143 | */ |
| 1144 | function max(out, v1, v2) { |
| 1145 | out[0] = Math.max(v1[0], v2[0]); |
| 1146 | out[1] = Math.max(v1[1], v2[1]); |
| 1147 | return out; |
| 1148 | } |
| 1149 | |
| 1150 | // TODO Draggable for group |
| 1151 | // FIXME Draggable on element which has parent rotation or scale |
no test coverage detected