FileDocCategorySizeDatePackage
SinTable7.javaAPI DocExample1994Thu Feb 04 16:10:42 GMT 1999None

SinTable7

public class SinTable7 extends GuidedLoopHandler

Fields Summary
private float[]
lookupValues
public float
sumValue
Constructors Summary
public SinTable7()

		super(0, 360*100, 100, 12);
		lookupValues = new float [360 * 100];
	
Methods Summary
public float[]getValues()

		loopProcess();
		System.out.println(sumValue);
		return lookupValues;
	
public voidloopDoRange(int start, int end)

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