Searched refs:rad (Results 1 – 3 of 3) sorted by relevance
87 for (double rad = step; rad <= twoPi - step; rad += step) { in checkColors()88 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in checkColors()89 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in checkColors()91 float relPos = (float)(rad / twoPi); in checkColors()130 System.out.println(rad); in checkColors()
37 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInByteArray() local41 int unsigned = (int)(Math.sin(j * (rad + j * sweep)) * Byte.MAX_VALUE) in createSoundDataInByteArray()50 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInShortArray() local54 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray()61 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInFloatArray() local65 vaf[j] = (float)(Math.sin(j * (rad + j * sweep))); in createSoundDataInFloatArray()77 final double rad = numCycles * 2.0 * Math.PI / numFrames; in createSineWavesShort() local79 short sample = (short)(amplitude * Math.sin(j * rad) * Short.MAX_VALUE); in createSineWavesShort()
48 void setRadius(int rad) {52 radius = rad;