Searched refs:circle (Results 1 - 25 of 37) sorted by relevance

12

/external/skia/src/effects/
H A DGrCircleBlurFragmentProcessor.h21 // This FP handles the special case of a blurred circle. It uses a 1D
22 // profile that is just rotated about the origin of the circle.
38 const SkRect& circle, float sigma) {
42 circle,
48 return new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile);
51 const SkRect& circle() const { return fCircle; } function in class:GrCircleBlurFragmentProcessor
57 GrCircleBlurFragmentProcessor(const SkRect& circle, float sigma,
66 // fOffset is computed from the circle width and the sigma
67 return this->circle().width() == cbfp.circle()
37 Create(GrTextureProvider*textureProvider, const SkRect& circle, float sigma) argument
[all...]
H A DGrCircleBlurFragmentProcessor.cpp40 // x,y - the center of the circle
76 const SkRect& circle = cbfp.circle(); local
79 // x,y - the center of the circle
82 pdman.set4f(fDataUniform, circle.centerX(), circle.centerY(), cbfp.offset(),
88 GrCircleBlurFragmentProcessor::GrCircleBlurFragmentProcessor(const SkRect& circle, argument
92 : fCircle(circle)
114 // Evaluate an AA circle function centered at the origin with 'radius' at (x,y)
157 // Apply the half-kernel at 't' away from the center of the circle
221 CreateCircleBlurProfileTexture( GrTextureProvider* textureProvider, const SkRect& circle, float sigma, float* offset) argument
264 SkRect circle = SkRect::MakeWH(wh, wh); local
[all...]
/external/skia/experimental/docs/
H A DexampleSlides.js1 var circle = {
80 { "line": [ 200,200, 200 + circle.radius * Math.cos(-22.5 * Math.PI / 180),
81 200 + circle.radius * Math.sin(-22.5 * Math.PI / 180) ] }
205 "string":"A sector is a wedge of a circle", "x":400, "y":200
456 "range":[-22.5 * Math.PI / 180, (-22.5 - 360) * Math.PI / 180], "params":"circle",
460 "range":[-22.5 * Math.PI / 180, (-22.5 - 360) * Math.PI / 180], "params":"circle",
/external/ImageMagick/PerlMagick/demo/
H A Dcompose-specials.pl39 my $circle=Image::Magick->new();
40 $circle->Set(size=>'80x80');
41 $circle->Read('xc:black');
42 $circle->Draw(fill=>'white',primitive=>'circle',points=>'39.5,39.5 10,39.5');
99 mask=>$circle,
/external/skia/gm/
H A Ddashcircle.cpp35 SkPath circle; local
36 circle.addCircle(0, 0, radius);
72 canvas->drawPath(circle, p);
H A Dhairlines.cpp148 SkRect circle = SkRect::MakeLTRB(-kRad, -kRad, kRad, kRad); variable
149 bug->addArc(circle, kStartAngle, kSweepAngle);
/external/skia/samplecode/
H A DSampleCircle.cpp17 // reconstruct the edges of the circle.
48 void circle(SkCanvas* canvas, int width, bool aa) { function in class:CircleView
67 circle(canvas, width, false);
69 circle(canvas, width, true);
H A DSampleClipDrawMatch.cpp58 SkRRect circle; local
59 circle.setOval(create_rect(offset));
60 return circle;
/external/skia/src/gpu/
H A DGrOvalRenderer.h49 const SkRect& circle,
H A DGrOvalRenderer.cpp63 * The output of this effect is a modulation of the input color and coverage for a circle. It
64 * operates in a space normalized by the circle radius (outer radius in the case of a stroke)
65 * with origin at the circle center. Two vertex attributes are used:
386 * implict equation used is for a unit circle (x^2 + y^2 - 1 = 0) and the edge corrected by
777 const SkRect& circle,
779 SkPoint center = SkPoint::Make(circle.centerX(), circle.centerY());
781 SkScalar radius = viewMatrix.mapRadius(SkScalarHalf(circle.width()));
808 // and the outset ensures the box will cover all partially covered by the circle.
826 const SkRect& circle,
775 create_circle_batch(GrColor color, const SkMatrix& viewMatrix, const SkRect& circle, const SkStrokeRec& stroke) argument
824 CreateCircleBatch(GrColor color, const SkMatrix& viewMatrix, const SkRect& circle, const SkStrokeRec& stroke) argument
1908 SkRect circle = GrTest::TestSquare(random); local
[all...]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
H A DExample2_24Test.java43 this.yamlConstructors.put(new Tag("tag:clarkevans.com,2002:circle"),
65 Circle circle = new Circle((Map<String, Integer>) values.get("center"),
67 return circle;
113 Circle circle = (Circle) data;
115 map.put("center", circle.getCenter());
116 map.put("radius", circle.getRadius());
117 return representMapping(new Tag("!circle"), map, Boolean.FALSE);
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/dot/
H A Ddot.stg68 node [fontsize=11, shape = <if(useBox)>box<else>circle, fixedsize=true, width=.4<endif>]; <name>
/external/mesa3d/src/gallium/state_trackers/vega/
H A Dbezier.c400 thing by a semi circle */
450 float circle[3][2]; local
492 circle[0][0] = b->x1 + normals[0][0]*offset;
493 circle[0][1] = b->y1 + normals[0][1]*offset;
495 circle[1][0] = 0.5*(b->x1 + b->x4) + normals[1][0]*offset;
496 circle[1][1] = 0.5*(b->y1 + b->y4) + normals[1][1]*offset;
498 circle[2][0] = b->x4 + normals[2][0]*offset;
499 circle[2][1] = b->y4 + normals[2][1]*offset;
504 o->x1 = circle[i][0];
505 o->y1 = circle[
[all...]
/external/clang/test/Analysis/
H A Darray-struct-region.c62 struct circle { struct point o; int r; }; struct
63 struct circle get_circle() {
64 struct circle result;
71 struct circle c;
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
H A DXMLTokener.java308 char[] circle = new char[n];
311 * First fill the circle buffer with as many characters as are in the
320 circle[i] = c;
329 * Compare the circle buffer with the to string.
332 if (circle[j] != to.charAt(i)) {
355 * Shove the character in the circle buffer and advance the
356 * circle offset. The offset is mod n.
358 circle[offset] = c;
/external/skia/tools/lua/
H A Dclassify_rrect_clips.lua61 return "circle"
/external/chromium-trace/catapult/third_party/graphy/graphy/
H A Dcommon.py42 circle = 'o' variable in class:Marker
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
H A Dscreen_finder.py331 cv2.circle(self._frame_debug, center, 5, (0, 255, 0), 1)
827 cv2.circle(self._frame_debug,
/external/chromium-trace/catapult/third_party/Paste/docs/
H A Ddefault.css23 list-style-type: circle;
/external/chromium-trace/catapult/third_party/Paste/docs/web/
H A Ddefault-site.css18 list-style-type: circle;
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/
H A Dtesting.py561 markup = '<svg><circle/></svg>'
565 self.assertEqual(namespace, soup.circle.namespace)
/external/chromium-trace/catapult/tracing/third_party/d3/
H A Dd3.min.js2 },t.clipExtent=function(n){return arguments.length?(w=n,_=n?Pe(n[0][0],n[0][1],n[1][0],n[1][1]):bt,u()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Na,d=n[1]%360*Na,r()):[v*La,d*La]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Na,y=n[1]%360*Na,x=n.length>2?n[2]%360*Na:0,r()):[m*La,y*La,x*La]},Xo.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function tr(n){return Ke(n,function(t,e){n.point(t*Na,e*Na)})}function er(n,t){return[n,t]}function rr(n,t){return[n>Sa?n-ka:-Sa>n?n+ka:n,t]}function ur(n,t,e){return n?t||e?Ue(or(n),ar(t,e)):or(n):t||e?ar(t,e):rr}function ir(n){return function(t,e){return t+=n,[t>Sa?t-ka:-Sa>t?t+ka:t,e]}}function or(n){var t=ir(n);return t.invert=ir(-n),t}function ar(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*r+a*u;return[Math.atan2(c*i-l*o,a*r-s*u),X(l*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*i-c*o;return[Math.atan2(c*i+s*o,a*r+l*u),X(l*r-a*u)]},e}function cr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=sr(e,u),i=sr(e,i),(o>0?i>u:u>i)&&(u+=o*ka)):(u=n+o*ka,i=n-.5*c);for(var s,l=u;o>0?l>i:i>l;l-=c)a.point((s=ve([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],s[1])}}function sr(n,t){var e=se(t);e[0]-=n,pe(e);var r=V(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Aa)%(2*Math.PI)}function lr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function fr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function hr(n){return n.source}function gr(n){return n.target}function pr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),s=u*Math.sin(n),l=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(J(r-t)+u*o*J(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*l,u=e*s+t*f,o=e*i+t*a;return[Math.atan2(u,r)*La,Math.atan2(o,Math.sqrt(r*r+u*u))*La]}:function(){return[n*La,t*La]};return p.distance=h,p}function vr(){function n(n,u){var i=Math.sin(u*=Na),o=Math.cos(u),a=oa((n*=Na)-t),c=Math.cos(a);Uc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;jc.point=function(u,i){t=u*Na,e=Math.sin(i*=Na),r=Math.cos(i),jc.point=n},jc.lineEnd=function(){jc.point=jc.lineEnd=g}}function dr(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function mr(n,t){function e(n,t){var e=oa(oa(t)-Ea)<Aa?0:o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(Sa/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=I(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ea]},e):xr}function yr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return oa(u)<Aa?er:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-I(u)*Math.sqrt(n*n+e*e)]},e)}function xr(n,t){return[n,Math.log(Math.tan(Sa/4+t/2))]}function Mr(n){var t,e=Qe(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=i.apply(e,arguments);if(o===e){if(t=null==n){var a=Sa*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function _r(n,t){return[Math.log(Math.tan(Sa/4+t/2)),-n]}function br(n){return n[0]}function wr(n){return n[1]}function Sr(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Z(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function kr(n,t){return n[0]-t[0]||n[1]-t[1]}function Er(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Ar(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],s=e[1],l=t[1]-c,f=r[1]-s,h=(a*(c-s)-f*(u-i))/(f*o-a*l);return[u+h*o,c+h*l]}function Cr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Nr(){Jr(this),this.edge=this.site=this.circle=null}function Lr(n){var t=Jc.pop()||new Nr;return t.site=n,t}function Tr(n){Or(n),$c.remove(n),Jc.push(n),Jr(n)}function qr(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];Tr(n);for(var c=i;c.circle&&oa(e-c.circle.x)<Aa&&oa(r-c.circle.cy)<Aa;)i=c.P,a.unshift(c),Tr(c),c=i;a.unshift(c),Or(c);for(var s=o;s.circle&&oa(e-s.circle.x)<Aa&&oa(r-s.circle.cy)<Aa;)o=s.N,a.push(s),Tr(s),s=o;a.push(s),Or(s);var l,f=a.length;for(l=1;f>l;++l)s=a[l],c=a[l-1],$r(s.edge,c.site,s.site,u);c=a[0],s=a[f-1],s.edge=Vr(c.site,s.site,null,u),Fr(c),Fr(s)}function zr(n){for(var t,e,r,u,i=n.x,o=n.y,a=$c._;a;)if(r=Rr(a,o)-i,r>Aa)a=a.L;else{if(u=i-Dr(a,o),!(u>Aa)){r>-Aa?(t=a.P,e=a):u>-Aa?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Lr(n);if($c.insert(t,c),t||e){if(t===e)return Or(t),e=Lr(t.site),$c.insert(c,e),c.edge=e.edge=Vr(t.site,c.site),Fr(t),Fr(e),void 0;if(!e)return c.edge=Vr(t.site,c.site),void 0;Or(t),Or(e);var s=t.site,l=s.x,f=s.y,h=n.x-l,g=n.y-f,p=e.site,v=p.x-l,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,x=v*v+d*d,M={x:(d*y-g*x)/m+l,y:(h*x-v*y)/m+f};$r(e.edge,s,p,M),c.edge=Vr(s,n,null,M),e.edge=Vr(n,p,null,M),Fr(t),Fr(e)}}function Rr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,s=c-t;if(!s)return a;var l=a-r,f=1/i-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+u-i/2)))/f+r:(r+a)/2}function Dr(n,t){var e=n.N;if(e)return Rr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Pr(n){this.site=n,this.edges=[]}function Ur(n){for(var t,e,r,u,i,o,a,c,s,l,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=Xc,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)l=a[o].end(),r=l.x,u=l.y,s=a[++o%c].start(),t=s.x,e=s.y,(oa(r-t)>Aa||oa(u-e)>Aa)&&(a.splice(o,0,new Br(Xr(i.site,l,oa(r-f)<Aa&&p-u>Aa?{x:f,y:oa(t-f)<Aa?e:p}:oa(u-p)<Aa&&h-r>Aa?{x:oa(e-p)<Aa?t:h,y:p}:oa(r-h)<Aa&&u-g>Aa?{x:h,y:oa(t-h)<Aa?e:g}:oa(u-g)<Aa&&r-f>Aa?{x:oa(e-g)<Aa?t:f,y:g}:null),i.site,null)),++c)}function jr(n,t){return t.angle-n.angle}function Hr(){Jr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Fr(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,s=r.y-a,l=i.x-o,f=i.y-a,h=2*(c*f-s*l);if(!(h>=-Ca)){var g=c*c+s*s,p=l*l+f*f,v=(f*g-s*p)/h,d=(c*p-l*g)/h,f=d+a,m=Gc.pop()||new Hr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,x=Wc._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Wc.insert(y,m),y||(Bc=m)}}}}function Or(n){var t=n.circle;
[all...]
/external/robolectric/v1/lib/main/
H A Djson-20080701.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/json/ org/json/CDL.class CDL. ...
/external/robolectric/v3/runtime/
H A Djson-20080701.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/json/ org/json/CDL.class CDL. ...
/external/skia/tests/
H A DPathOpsAngleIdeas.cpp79 // construct circle from quads
80 const SkDQuad circle[8] = {{{{ r, 0}, { r, -s}, { m, -m}}}, local
89 double t = testArc(reporter, quad, circle[octant], octant);

Completed in 516 milliseconds

12