FileDocCategorySizeDatePackage
SinTable9.javaAPI DocExample2078Thu Feb 04 16:10:42 GMT 1999None

SinTable9

public class SinTable9 extends PoolLoopHandler

Fields Summary
private float[]
lookupValues
private int
j
Constructors Summary
public SinTable9()

		super(0, 360, 12);
		lookupValues = new float[1000][];
		for (int j = 0; j < 1000; j++) {
			lookupValues[j] = new float[360];
		}
	
Methods Summary
public float[][]getValues()

		for (int i = 0; i < 360; i++) {
			lookupValues[0][i] = 0;
		}
		for (j = 1; j < 1000; j++) {
			loopProcess();
		}
		return lookupValues;
	
public voidloopDoRange(int start, int end)

		float sinValue = 0.0f;
		for (int i = start; i < end; i++) {
			sinValue = (float)Math.sin((i % 360)*Math.PI/180.0);
			lookupValues[j][i] = sinValue * (float)i / 180.0f;
			lookupValues[j][i] += lookupValues[j-1][i] * (float)j / 180.0f;
		}