154155156157158159160161162163164
// distance // smaller // than the // increment // size grassPatchRandomOffset .rotateAroundOrigin( (float) (((int) (rand.nextFloat() * 359)) * (Math.PI / 180)), true); // rotate the offset by a random angle ax = x + grassPatchRandomOffset.x;