Sets this to be the component-wise minimum of this and another vector @param a the other vector @return this
(Vec2 a)
| 1339 | * @return this |
| 1340 | */ |
| 1341 | public Vec2 min(Vec2 a) { |
| 1342 | this.x = Math.min(a.x, this.x); |
| 1343 | this.y = Math.min(a.y, this.y); |
| 1344 | return this; |
| 1345 | } |
| 1346 | |
| 1347 | /** |
| 1348 | * Sets this to be the component-wise maximum of this and another vector |