Searched refs:rad (Results 1 – 4 of 4) sorted by relevance
89 float rad = angle + rotationOffset_; in setRotation() local93 out.x = normalized.x * cos(rad) - normalized.y * sin(rad); in setRotation()94 out.y = normalized.x * sin(rad) + normalized.y * cos(rad); in setRotation()
104 for (double rad = step; rad <= twoPi - step; rad += step) { in verifyColors()105 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in verifyColors()106 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in verifyColors()108 float relPos = (float)(rad / twoPi); in verifyColors()146 Log.w(getClass().getName(), "rad=" + rad + ", x=" + x + ", y=" + y in verifyColors()
68 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInByteArray() local72 int unsigned = (int)(Math.sin(j * (rad + j * sweep)) * Byte.MAX_VALUE) in createSoundDataInByteArray()81 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInShortArray() local85 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray()92 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInFloatArray() local96 vaf[j] = (float)(Math.sin(j * (rad + j * sweep))); in createSoundDataInFloatArray()112 final double rad = 2.0f * (float) Math.PI * frequency / (float) sampleRate; in createSoundDataInShortByteBuffer() local117 short vai = (short) (Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortByteBuffer()205 final double rad = numCycles * 2.0 * Math.PI / numFrames; in createSineWavesShort() local207 short sample = (short)(amplitude * Math.sin(j * rad) * Short.MAX_VALUE); in createSineWavesShort()
48 void setRadius(int rad) {52 radius = rad;