FileDocCategorySizeDatePackage
SinTable1.javaAPI DocExample1734Thu Feb 04 16:10:40 GMT 1999None

SinTable1

public class SinTable1 extends SinTable

Fields Summary
private float[]
lookupValues
Constructors Summary
Methods Summary
public synchronized float[]getValues()


	    
		if (lookupValues == null) {
			lookupValues = new float [360 * 100];
			for (int i = 0; i < (360*100); i++) {
				float sinValue = (float)Math.sin((i % 360)*Math.PI/180.0);
				lookupValues[i] = sinValue * (float)i / 180.0f;
			}	
		}	
		return lookupValues;