FileDocCategorySizeDatePackage
SinTable.javaAPI DocExample1948Thu Feb 04 16:10:40 GMT 1999None

SinTable

public class SinTable extends GuidedLoopHandler

Fields Summary
private float[]
lookupValues
private LoopPrinter1
lp
Constructors Summary
public SinTable()

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

		loopProcess();
		lp.send2stream(System.out);
		return lookupValues;
	
public voidloopDoRange(int start, int end)

		for (int i = start; i < end; i++) {
			float sinValue = (float)Math.sin((i % 360)*Math.PI/180.0);
			lookupValues[i] = sinValue * (float)i / 180.0f;
			lp.println(i, " " + i + "		" + lookupValues[i]);
		}