public void setDimensions(int width, int height) { this.width = width; this.height = height; icentreX = centreX * width; icentreY = centreY * height; super.setDimensions(width, height); }
public void setDimensions(int width, int height) { this.width = width; this.height = height; centreX = width / 2; centreY = height / 2; super.setDimensions(width, height); randomNumbers.setSeed(seed); rayLengths = new float[rays]; for (int i = 0; i < rays; i++) rayLengths[i] = radius + randomness / 100.0f * radius * (float) randomNumbers.nextGaussian(); }