Home
last modified time | relevance | path

Searched refs:rad (Results 1 – 25 of 214) sorted by relevance

123456789

/external/skia/bench/
DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { in BlurRectBench() argument
30 fRadius = rad; in BlurRectBench()
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { in BlurRectDirectBench() argument
82 if (SkScalarFraction(rad) != 0) { in BlurRectDirectBench()
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad)); in BlurRectDirectBench()
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench()
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } in BlurRectSeparableBench() argument
131 BlurRectBoxFilterBench(SkScalar rad) : INHERITED(rad) { in BlurRectBoxFilterBench() argument
134 if (SkScalarFraction(rad) != 0) { in BlurRectBoxFilterBench()
135 name.printf("blurrect_boxfilter_%.2f", SkScalarToFloat(rad)); in BlurRectBoxFilterBench()
[all …]
DPolyUtilsBench.cpp121 SkScalar rad = 0; in makePoly() local
124 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
125 rad += drad; in makePoly()
126 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
127 rad += drad; in makePoly()
146 SkScalar rad = 0; in makePoly() local
149 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
150 rad += drad; in makePoly()
170 SkScalar rad = -SK_ScalarPI / 2; in makePoly() local
174 rad += drad; in makePoly()
[all …]
DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) in MorphologyBench() argument
38 fRadius = rad; in MorphologyBench()
40 const char* name = rad > 0 ? gStyleName[style] : "none"; in MorphologyBench()
41 if (SkScalarFraction(rad) != 0) { in MorphologyBench()
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name); in MorphologyBench()
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name); in MorphologyBench()
DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs) { in BlurBench() argument
38 fRadius = rad; in BlurBench()
40 const char* name = rad > 0 ? gStyleName[bs] : "none"; in BlurBench()
42 if (SkScalarFraction(rad) != 0) { in BlurBench()
43 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality); in BlurBench()
45 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality); in BlurBench()
/external/skqp/bench/
DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { in BlurRectBench() argument
30 fRadius = rad; in BlurRectBench()
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { in BlurRectDirectBench() argument
82 if (SkScalarFraction(rad) != 0) { in BlurRectDirectBench()
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad)); in BlurRectDirectBench()
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench()
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } in BlurRectSeparableBench() argument
131 BlurRectBoxFilterBench(SkScalar rad) : INHERITED(rad) { in BlurRectBoxFilterBench() argument
134 if (SkScalarFraction(rad) != 0) { in BlurRectBoxFilterBench()
135 name.printf("blurrect_boxfilter_%.2f", SkScalarToFloat(rad)); in BlurRectBoxFilterBench()
[all …]
DPolyUtilsBench.cpp115 SkScalar rad = 0; in makePoly() local
118 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly()
120 rad += drad; in makePoly()
121 sinV = SkScalarSinCos(rad, &cosV); in makePoly()
123 rad += drad; in makePoly()
142 SkScalar rad = 0; in makePoly() local
145 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly()
147 rad += drad; in makePoly()
167 SkScalar rad = -SK_ScalarPI / 2; in makePoly() local
171 rad += drad; in makePoly()
[all …]
DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) in MorphologyBench() argument
38 fRadius = rad; in MorphologyBench()
40 const char* name = rad > 0 ? gStyleName[style] : "none"; in MorphologyBench()
41 if (SkScalarFraction(rad) != 0) { in MorphologyBench()
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name); in MorphologyBench()
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name); in MorphologyBench()
DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs) { in BlurBench() argument
38 fRadius = rad; in BlurBench()
40 const char* name = rad > 0 ? gStyleName[bs] : "none"; in BlurBench()
42 if (SkScalarFraction(rad) != 0) { in BlurBench()
43 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality); in BlurBench()
45 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality); in BlurBench()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
DPieRenderer.java80 float rad, float startAngle, float sweep) { in drawSegment() argument
89 donutSizePx = donutSize * rad; in drawSegment()
92 donutSizePx = (donutSize > 0)?donutSize:(rad + donutSize); in drawSegment()
99 PointF r1Outer = calculateLineEnd(cx, cy, rad, startAngle); in drawSegment()
103 PointF r2Outer = calculateLineEnd(cx, cy, rad, startAngle + sweep); in drawSegment()
115 clip.arcTo(new RectF(bounds.left - rad, in drawSegment()
116 bounds.top - rad, in drawSegment()
117 bounds.right + rad, in drawSegment()
118 bounds.bottom + rad), in drawSegment()
149 canvas.drawCircle(cx, cy, rad, f.getOuterEdgePaint()); in drawSegment()
[all …]
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
DNeuQuant.java236 int radius, rad, alpha, step, delta, samplepixels; in learn() local
251 rad = radius >> radiusbiasshift; in learn()
252 if (rad <= 1) in learn()
253 rad = 0; in learn()
254 for (i = 0; i < rad; i++) in learn()
255 radpower[i] = alpha * (((rad * rad - i * i) * radbias) / (rad * rad)); in learn()
282 if (rad != 0) in learn()
283 alterneigh(rad, j, b, g, r); /* alter neighbours */ in learn()
295 rad = radius >> radiusbiasshift; in learn()
296 if (rad <= 1) in learn()
[all …]
/external/skia/tests/
DTracingTest.cpp118 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
129 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
131 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
142 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
145 "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
DRRectInPathTest.cpp175 const SkScalar rad = 12814; in test_tricky_radii() local
176 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
200 const SkScalar rad = 40; in test_empty_crbug_458524() local
201 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
416 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii() argument
418 radii[index].set(rad, rad); in set_radii()
426 const float rad = 33436320; in test_skbug_3239() local
435 set_radii(radii, i, rad); in test_skbug_3239()
/external/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DMatrix.java113 public Matrix rotateX(float rad) { in rotateX() argument
114 nRotate(this.mNativeInstance, 1, 0, 0, rad); in rotateX()
123 public Matrix rotateY(float rad) { in rotateY() argument
124 nRotate(this.mNativeInstance, 0, 1, 0, rad); in rotateY()
133 public Matrix rotateZ(float rad) { in rotateZ() argument
134 nRotate(this.mNativeInstance, 0, 0, 1, rad); in rotateZ()
169 private static native void nRotate(long mNativeInstance, float x, float y, float z, float rad); in nRotate() argument
/external/libchrome/ui/gfx/geometry/
Dangle_conversions.h20 GFX_EXPORT constexpr double RadToDeg(double rad) { in RadToDeg() argument
21 return rad * 180.0 / base::kPiDouble; in RadToDeg()
23 GFX_EXPORT constexpr float RadToDeg(float rad) { in RadToDeg() argument
24 return rad * 180.0f / base::kPiFloat; in RadToDeg()
/external/skqp/tests/
DTracingTest.cpp117 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
118 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
128 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
130 SkScalar sin = SkScalarSinCos(rad, &cos); in test_trace_counters()
143 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
145 SkScalar sin = SkScalarSinCos(rad, &cos); in test_trace_counters()
DRRectInPathTest.cpp179 const SkScalar rad = 12814; in test_tricky_radii() local
180 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
204 const SkScalar rad = 40; in test_empty_crbug_458524() local
205 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
420 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii() argument
422 radii[index].set(rad, rad); in set_radii()
430 const float rad = 33436320; in test_skbug_3239() local
439 set_radii(radii, i, rad); in test_skbug_3239()
/external/skqp/src/gpu/ops/
DGrStrokeRectOp.cpp59 const SkScalar rad = SkScalarHalf(width); in init_nonaa_stroke_rect_strip() local
61 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
62 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
63 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
64 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
65 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
66 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
67 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
68 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
74 if (2*rad >= rect.width()) { in init_nonaa_stroke_rect_strip()
[all …]
/external/skia/src/gpu/ops/
DGrStrokeRectOp.cpp62 const SkScalar rad = SkScalarHalf(width); in init_nonaa_stroke_rect_strip() local
64 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
65 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
66 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
67 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
68 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
69 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
70 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
71 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
77 if (2*rad >= rect.width()) { in init_nonaa_stroke_rect_strip()
[all …]
/external/skia/gm/
Dbackdrop.cpp26 static sk_sp<SkShader> make_shader(SkScalar cx, SkScalar cy, SkScalar rad) { in make_shader() argument
43 const SkScalar cx = 128, cy = 128, rad = 100; in do_draw() local
45 p.setShader(make_shader(cx, cy, rad)); in do_draw()
47 canvas->drawCircle(cx, cy, rad, p); in do_draw()
/external/skia/docs/examples/
DPath_incReserve.cpp10 SkScalar rad = SK_ScalarPI * 2 * i / sides; in draw() local
11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
/external/rust/crates/num-traits/src/
Dfloat.rs2334 for &(deg, rad) in &DEG_RAD_PAIRS { in convert_deg_rad()
2335 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-6); in convert_deg_rad()
2336 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-6); in convert_deg_rad()
2338 let (deg, rad) = (deg as f32, rad as f32); in convert_deg_rad()
2339 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-5); in convert_deg_rad()
2340 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-5); in convert_deg_rad()
2347 for &(deg, rad) in &DEG_RAD_PAIRS { in convert_deg_rad_std()
2350 assert!((Float::to_degrees(rad) - deg).abs() < 1e-6); in convert_deg_rad_std()
2351 assert!((Float::to_radians(deg) - rad).abs() < 1e-6); in convert_deg_rad_std()
2353 let (deg, rad) = (deg as f32, rad as f32); in convert_deg_rad_std()
[all …]
/external/python/cpython3/Lib/turtledemo/
Dfractalcurves.py47 def fractalgon(self, n, rad, lev, dir): argument
52 edge = 2 * rad * math.sin(math.pi / n)
54 self.fd(rad)
62 self.bk(rad)
/external/python/cpython2/Demo/turtle/
Dtdemo_fractalcurves.py47 def fractalgon(self, n, rad, lev, dir): argument
52 edge = 2 * rad * math.sin(math.pi / n)
54 self.fd(rad)
62 self.bk(rad)
/external/tcpdump/
Dprint-radius.c952 register const struct radius_hdr *rad; in radius_print() local
956 rad = (const struct radius_hdr *)dat; in radius_print()
957 len = EXTRACT_16BITS(&rad->len); in radius_print()
970 tok2str(radius_command_values,"Unknown Command",rad->code), in radius_print()
971 rad->code, in radius_print()
972 rad->id, in radius_print()
979 tok2str(radius_command_values,"Unknown Command",rad->code), in radius_print()
980 rad->code, in radius_print()
981 rad->id)); in radius_print()
984 ND_PRINT((ndo, "%02x", rad->auth[auth_idx])); in radius_print()
/external/skia/modules/canvaskit/
Dutil.js8 function radiansToDegrees(rad) { argument
9 return (rad / Math.PI) * 180;

123456789