HomeSort by relevance Sort by last modified time
    Searched refs:cos (Results 276 - 300 of 679) sorted by null

<<11121314151617181920>>

  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/
popup.js 78 var hourY = -Math.cos(hourAngle);
81 var minY = -Math.cos(minAngle);
84 var secY = -Math.cos(secAngle);
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
3d-cube.js 147 var Cos = Math.cos(a);
151 [0,Cos,-Sin,0],
152 [0,Sin,Cos,0],
161 var Cos = Math.cos(a);
164 [Cos,0,Sin,0],
166 [-Sin,0,Cos,0],
175 var Cos = Math.cos(a)
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
3d-cube.js 147 var Cos = Math.cos(a);
151 [0,Cos,-Sin,0],
152 [0,Sin,Cos,0],
161 var Cos = Math.cos(a);
164 [Cos,0,Sin,0],
166 [-Sin,0,Cos,0],
175 var Cos = Math.cos(a)
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
3d-cube.js 147 var Cos = Math.cos(a);
151 [0,Cos,-Sin,0],
152 [0,Sin,Cos,0],
161 var Cos = Math.cos(a);
164 [Cos,0,Sin,0],
166 [-Sin,0,Cos,0],
175 var Cos = Math.cos(a)
    [all...]
  /external/chromium_org/third_party/flot/
jquery.flot.pie.min.js 56 */(function(e){function r(r){function p(t,n,r){l||(l=!0,s=t.getCanvas(),o=e(s).parent(),i=t.getOptions(),t.setData(d(t.getData())))}function d(t){var n=0,r=0,s=0,o=i.series.pie.combine.color,u=[];for(var a=0;a<t.length;++a){var f=t[a].data;e.isArray(f)&&f.length==1&&(f=f[0]),e.isArray(f)?!isNaN(parseFloat(f[1]))&&isFinite(f[1])?f[1]=+f[1]:f[1]=0:!isNaN(parseFloat(f))&&isFinite(f)?f=[1,+f]:f=[1,0],t[a].data=[f]}for(var a=0;a<t.length;++a)n+=t[a].data[0][1];for(var a=0;a<t.length;++a){var f=t[a].data[0][1];f/n<=i.series.pie.combine.threshold&&(r+=f,s++,o||(o=t[a].color))}for(var a=0;a<t.length;++a){var f=t[a].data[0][1];(s<2||f/n>i.series.pie.combine.threshold)&&u.push({data:[[1,f]],color:t[a].color,label:t[a].label,angle:f*Math.PI*2/n,percent:f/(n/100)})}return s>1&&u.push({data:[[1,r]],color:o,label:i.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),u}function v(r,s){function y(){c.clearRect(0,0,h,p),o.children().filter(".pieLabel, .pieLabelBackground").remove()}function b(){var e=i.series.pie.shadow.left,t=i.series.pie.shadow.top,n=10,r=i.series.pie.shadow.alpha,s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;if(s>=h/2-e||s*i.series.pie.tilt>=p/2-t||s<=n)return;c.save(),c.translate(e,t),c.globalAlpha=r,c.fillStyle="#000",c.translate(a,f),c.scale(1,i.series.pie.tilt);for(var o=1;o<=n;o++)c.beginPath(),c.arc(0,0,s,0,Math.PI*2,!1),c.fill(),s-=o;c.restore()}function w(){function l(e,t,i){if(e<=0||isNaN(e))return;i?c.fillStyle=t:(c.strokeStyle=t,c.lineJoin="round"),c.beginPath(),Math.abs(e-Math.PI*2)>1e-9&&c.moveTo(0,0),c.arc(0,0,n,r,r+e/2,!1),c.arc(0,0,n,r+e/2,r+e,!1),c.closePath(),r+=e,i?c.fill():c.stroke()}function d(){function l(t,n,s){if(t.data[0][1]==0)return!0;var u=i.legend.labelFormatter,l,c=i.series.pie.label.formatter;u?l=u(t.label,t):l=t.label,c&&(l=c(l,t));var d=(n+t.angle+n)/2,v=a+Math.round(Math.cos(d)*r),m=f+Math.round(Math.sin(d)*r)*i.series.pie.tilt,g="<span class='pieLabel' id='pieLabel"+s+"' style='position:absolute;top:"+m+"px;left:"+v+"px;'>"+l+"</span>";o.append(g);var y=o.children("#pieLabel"+s),b=m-y.height()/2,w=v-y.width()/2;y.css("top",b),y.css("left",w);if(0-b>0||0-w>0||p-(b+y.height())<0||h-(w+y.width())<0)return!1;if(i.series.pie.label.background.opacity!=0){var E=i.series.pie.label.background.color;E==null&&(E=t.color);var S="top:"+b+"px;left:"+w+"px;";e("<div class='pieLabelBackground' style='position:absolute;width:"+y.width()+"px;height:"+y.height()+"px;"+S+"background-color:"+E+";'></div>").css("opacity",i.series.pie.label.background.opacity).insertBefore(y)}return!0}var n=t,r=i.series.pie.label.radius>1?i.series.pie.label.radius:u*i.series.pie.label.radius;for(var s=0;s<v.length;++s){if(v[s].percent>=i.series.pie.label.threshold*100&&!l(v[s],n,s))return!1;n+=v[s].angle}return!0}var t=Math.PI*i.series.pie.startAngle,n=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;c.save(),c.translate(a,f),c.scale(1,i.series.pie.tilt),c.save();var r=t;for(var s=0;s<v.length;++s)v[s].startAngle=r,l(v[s].angle,v[s].color,!0);c.restore();if(i.series.pie.stroke.width>0){c.save(),c.lineWidth=i.series.pie.stroke.width,r=t;for(var s=0;s<v.length;++s)l(v[s].angle,i.series.pie.stroke.color,!1);c.restore()}return m(c),c.restore(),i.series.pie.label.show?d():!0}if(!o)return;var h=r.getPlaceholder().width(),p=r.getPlaceholder().height(),d=o.children().filter(".legend").children().width()||0;c=s,l=!1,u=Math.min(h,p/i.series.pie.tilt)/2,f=p/2+i.series.pie.offset.top,a=h/2,i.series.pie.offset.left=="auto"?i.legend.position.match("w")?a+=d/2:a-=d/2:a+=i.series.pie.offset.left,a<u?a=u:a>h-u&&(a=h-u);var v=r.getData(),g=0;do g>0&&(u*=n),g+=1,y(),i.series.pie.tilt<=.8&&b();while(!w()&&g<t);g>=t&&(y(),o.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),r.setSeries&&r.insertLegend&&(r.setSeries(v),r.insertLegend())}function m(e){if(i.series.pie.innerRadius>0){e.save();var t=i.series.pie.innerRadius>1?i.series.pie.innerRadius:u*i.series.pie.innerRadius;e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.stroke(),e.closePath(),e.restore()}}function g(e,t){for(var n=!1,r=-1,i=e.length,s=i-1;++r<i;s=r)(e[r][1]<=t[1]&&t[1]<e[s][1]||e[s][1]<=t[1]&&t[1]<e[r][1])&&t[0]<(e[s][0]-e[r][0])*(t[1]-e[r][1])/(e[s][1]-e[r][1])+e[r][0]&&(n=!n);return n}function y(e,t){var n=r.getData(),i=r.getOptions(),s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius,o,l;for(var h=0;h<n.length;++h){var p=n[h];if(p.pie.show){c.save(),c.beginPath(),c.moveTo(0,0),c.arc(0,0,s,p.startAngle,p.startAngle+p.angle/2,!1),c.arc(0,0,s,p.startAngle+p.angle/2,p.startAngle+p.angle,!1),c.closePath(),o=e-a,l=t-f;if(c.isPointInPath){if(c.isPointInPath(e-a,t-f))return c.restore(),{datapoint:[p.percent,p.data],dataIndex:0,series:p,seriesIndex:h}}else{var d=s*Math.cos(p.startAngle),v=s*Math.sin(p.startAngle),m=s*Math.cos(p.startAngle+p.angle/4),y=s*Math.sin(p.startAngle+p.angle/4),b=s*Math.cos(p.startAngle+p.angle/2),w=s*Math.sin(p.startAngle+p.angle/2),E=s*Math.cos(p.startAngle+p.angle/1.5),S=s*Math.sin(p.startAngle+p.angle/1.5),x=s*Math.cos(p.startAngle+p.angle),T=s*Math.sin(p.startAngle+p.angle),N=[[0,0],[d,v],[m,y],[b,w],[E,S],[x,T]],C (…)
  /frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
TiledImageRenderer.java 366 double cos = Math.cos(radians); local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h)));
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h)));
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
TileImageView.java 309 double cos = Math.cos(radians); local
312 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h)));
314 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h)));
  /packages/apps/Gallery2/src/com/android/photos/views/
TiledImageRenderer.java 366 double cos = Math.cos(radians); local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h)));
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h)));
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
TiledImageRenderer.java 366 double cos = Math.cos(radians); local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h)));
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h)));
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_math.py 328 self.assertRaises(TypeError, math.cos)
329 self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0)
330 self.ftest('cos(0)', math.cos(0), 1)
331 self.ftest('cos(pi/2)', math.cos(math.pi/2), 0)
332 self.ftest('cos(pi)', math.cos(math.pi), -1)
334 self.assertTrue(math.isnan(math.cos(INF))
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_math.py 328 self.assertRaises(TypeError, math.cos)
329 self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0)
330 self.ftest('cos(0)', math.cos(0), 1)
331 self.ftest('cos(pi/2)', math.cos(math.pi/2), 0)
332 self.ftest('cos(pi)', math.cos(math.pi), -1)
334 self.assertTrue(math.isnan(math.cos(INF))
    [all...]
  /external/ceres-solver/examples/
nist.cc 379 // y = b1 + b2*cos( 2*pi*x/12 ) + b3*sin( 2*pi*x/12 )
380 // + b5*cos( 2*pi*x/b4 ) + b6*sin( 2*pi*x/b4 )
381 // + b8*cos( 2*pi*x/b7 ) + b9*sin( 2*pi*x/b7 ) + e
383 b[0] + b[1] * cos(T(2.0 * kPi) * x / T(12.0)) +
385 b[4] * cos(T(2.0 * kPi) * x / b[3]) +
387 b[7] * cos(T(2.0 * kPi) * x / b[6]) +
  /external/chromium_org/third_party/skia/src/pathops/
SkPathOpsCubic.cpp 185 r = neg2RootQ * cos(theta / 3) - adiv3;
188 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3;
192 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3;
  /external/chromium_org/ui/gfx/
transform.cc 100 SkMScalar cosTheta = SkDoubleToMScalar(std::cos(radians));
117 SkMScalar cosTheta = SkDoubleToMScalar(std::cos(radians));
136 SkMScalar cosTheta = SkDoubleToMScalar(std::cos(radians));
  /external/libvorbis/lib/
mdct.c 66 T[i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i)));
68 T[n2+i*2]=FLOAT_CONV(cos((M_PI/(2*n))*(2*i+1)));
72 T[n+i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i+2))*.5);
lsp.c 252 for(i=0;i<m;i++)lsp[i]=2.f*cos(lsp[i]);
259 float w=2.f*cos(wdel*k);
435 /* Convert into polynomials in cos(alpha) */
  /external/skia/src/pathops/
SkPathOpsCubic.cpp 185 r = neg2RootQ * cos(theta / 3) - adiv3;
188 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3;
192 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3;
  /external/srec/srec/cfront/
sp_fft.c 300 pcos1[ii] = to_trigonomydata(cos(radias));
302 pcos3[ii] = to_trigonomydata(cos(radias3));
313 pcos2[i] = to_trigonomydata(cos(radias));
  /frameworks/base/location/java/android/location/
Location.java 309 double cosU1 = Math.cos(U1);
310 double cosU2 = Math.cos(U2);
328 cosLambda = Math.cos(lambda);
  /frameworks/native/libs/input/tests/
InputEvent_test.cpp 523 float cos = cosf(angle); local
524 matrix[0] = cos;
528 matrix[4] = cos;
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CubeMapActivity.java 169 float cosV = (float) Math.cos(angleV);
173 float cosU = (float) Math.cos(angleU);
MatrixPaletteRenderer.java 344 float unitAngle = (float) Math.cos(animationUnit * 2 * Math.PI);
394 float x = radius * (float) Math.cos(angle);
  /external/chromium_org/chrome/browser/extensions/api/location/
location_manager.cc 100 cos(latitude1Rad) *
101 cos(latitude2Rad));
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/progs/d3d11spikysphere/
d3d11spikysphere.hlsl 117 return cos(v * disp_freq);
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar 

Completed in 1653 milliseconds

<<11121314151617181920>>