adds a uniformly distributed random number from `-amount` to `amount` to each dimension
(float amount)
| 1406 | * adds a uniformly distributed random number from `-amount` to `amount` to each dimension |
| 1407 | */ |
| 1408 | public Vec2 noise(float amount) { |
| 1409 | x += 2 * amount * (Math.random() - 0.5f); |
| 1410 | y += 2 * amount * (Math.random() - 0.5f); |
| 1411 | return this; |
| 1412 | } |
| 1413 | |
| 1414 | @Override |
| 1415 | public Object asMap_call(Object a, Object b) { |
no outgoing calls
no test coverage detected