Home
last modified time | relevance | path

Searched refs:rad (Results 26 - 50 of 87) sorted by relevance

1234

/third_party/skia/tests/
H A DPolyUtilsTest.cpp201 SkScalar rad = 0; in DEF_TEST() local
204 *poly.push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in DEF_TEST()
205 rad += drad; in DEF_TEST()
206 *poly.push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in DEF_TEST()
207 rad += drad; in DEF_TEST()
H A DRoundRectTest.cpp21 const SkScalar rad = 12814; in test_tricky_radii() local
22 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
44 const SkScalar rad = 40; in test_empty_crbug_458524() local
45 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
[all...]
/third_party/skia/gm/
H A Daddarc.cpp95 const SkScalar rad = SkDegreesToRadians(deg); in DEF_SIMPLE_GM() local
96 SkScalar rx = SkScalarCos(rad) * R; in DEF_SIMPLE_GM()
97 SkScalar ry = SkScalarSin(rad) * R; in DEF_SIMPLE_GM()
102 SkScalar arcLen = rad * R; in DEF_SIMPLE_GM()
H A Dsmallpaths.cpp66 SkScalar rad = -SK_ScalarPI / 2; in make_star() local
72 rad += drad; in make_star()
73 b.lineTo(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in make_star()
H A Dimagefiltersbase.cpp187 const SkScalar rad = SkDegreesToRadians(15.0f); in draw_atlas() local
188 SkRSXform xform = SkRSXform::Make(SkScalarCos(rad), SkScalarSin(rad), r.width() * 0.15f, 0); in draw_atlas()
H A Ddrawatlas.cpp90 const SkScalar rad = SkDegreesToRadians(fDegrees); in apply() local
91 xform->fSCos = fScale * SkScalarCos(rad); in apply()
92 xform->fSSin = fScale * SkScalarSin(rad); in apply()
H A Dtilemodes_scaled.cpp177 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad() local
185 return SkGradientShader::MakeRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
H A Ddashing.cpp109 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star() local
115 rad += drad; in make_unit_star()
116 b.lineTo(SkScalarCos(rad), SkScalarSin(rad)); in make_unit_star()
H A Dpathfill.cpp138 SkScalar rad = -SK_ScalarPI / 2; in make_star() local
144 rad += drad; in make_star()
145 builder.lineTo(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in make_star()
H A Druntimeshader.cpp98 const SkScalar rad = 50; in make_threshold() local
102 paint.setShader(SkGradientShader::MakeRadial({0,0}, rad, colors, nullptr, 2, SkTileMode::kClamp)); in make_threshold()
115 canvas->drawCircle(0, 0, rad, paint); in make_threshold()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_spring_model.h83 double rad = dampedAngularVelocity_ * time; in CalculateDisplacement() local
84 RSAnimatableType coeffPeriod = initialOffset_ * cos(rad) + coeffScale_ * sin(rad); in CalculateDisplacement()
/kernel/linux/linux-5.10/include/linux/
H A Dfixp-arith.h141 #define fixp_cos32_rad(rad, twopi) \
142 fixp_sin32_rad(rad + twopi / 4, twopi)
/kernel/linux/linux-6.6/include/linux/
H A Dfixp-arith.h142 #define fixp_cos32_rad(rad, twopi) \
143 fixp_sin32_rad(rad + twopi / 4, twopi)
/third_party/skia/docs/examples/
H A DBlendModes.cpp7 auto rad = SkGradientShader::MakeRadial(SkPoint::Make(128, 128), 128, radColors, nullptr, 3, in REG_FIDDLE() local
16 auto comp = SkShaders::Blend(SkBlendMode::kModulate, std::move(rad), std::move(sweep)); in REG_FIDDLE()
/third_party/skia/modules/androidkit/src/
H A DMatrix.cpp99 static void Matrix_Rotate(JNIEnv* env, jobject, jlong native_matrix, jfloat x, jfloat y, jfloat z, jfloat rad) { in Matrix_Rotate() argument
101 SkM44 rotate = SkM44::Rotate({x, y, z}, rad); in Matrix_Rotate()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_spring_model.cpp137 double rad = dampedAngularVelocity_ * time; in CalculateDisplacement() local
138 auto coeffPeriod = (initialOffset_ * cos(rad)) += (coeffScale_ * sin(rad)); in CalculateDisplacement()
/third_party/skia/bench/
H A DDashBench.cpp140 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star() local
145 rad += drad; in make_unit_star()
146 path->lineTo(SkScalarCos(rad), SkScalarSin(rad)); in make_unit_star()
/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_pdftopdf.h26 Matrix &rotate(double rad);
/third_party/skia/include/c/
H A Dsk_canvas.h106 * Draw the circle centered at (cx, cy) with radius rad using the specified paint.
109 SK_API void sk_canvas_draw_circle(sk_canvas_t*, float cx, float cy, float rad, const sk_paint_t*);
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_dp_mst_topology.c178 drm_dp_mst_rad_to_str(const u8 rad[8], u8 lct, char *out, size_t len) in drm_dp_mst_rad_to_str() argument
185 unpacked_rad[i] = rad[i / 2] >> 4; in drm_dp_mst_rad_to_str()
187 unpacked_rad[i] = rad[i / 2] & BIT_MASK(4); in drm_dp_mst_rad_to_str()
190 /* TODO: Eventually add something to printk so we can format the rad in drm_dp_mst_rad_to_str()
281 buf[idx++] = hdr->rad[i]; in drm_dp_encode_sideband_msg_hdr()
317 hdr->rad[i] = buf[idx++]; in drm_dp_decode_sideband_msg_hdr()
694 drm_dp_mst_rad_to_str(txmsg->dst->rad, txmsg->dst->lct, buf, in drm_dp_mst_dump_sideband_msg_tx()
1360 static struct drm_dp_mst_branch *drm_dp_add_mst_branch_device(u8 lct, u8 *rad) in drm_dp_add_mst_branch_device() argument
1370 memcpy(mstb->rad, rad, lc in drm_dp_add_mst_branch_device()
2055 drm_dp_calculate_rad(struct drm_dp_mst_port *port, u8 *rad) drm_dp_calculate_rad() argument
2094 u8 rad[8], lct; drm_dp_port_set_pdt() local
2570 drm_dp_get_mst_branch_device(struct drm_dp_mst_topology_mgr *mgr, u8 lct, u8 *rad) drm_dp_get_mst_branch_device() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/display/
H A Ddrm_dp_mst_topology.c178 drm_dp_mst_rad_to_str(const u8 rad[8], u8 lct, char *out, size_t len) in drm_dp_mst_rad_to_str() argument
185 unpacked_rad[i] = rad[i / 2] >> 4; in drm_dp_mst_rad_to_str()
187 unpacked_rad[i] = rad[i / 2] & BIT_MASK(4); in drm_dp_mst_rad_to_str()
190 /* TODO: Eventually add something to printk so we can format the rad in drm_dp_mst_rad_to_str()
281 buf[idx++] = hdr->rad[i]; in drm_dp_encode_sideband_msg_hdr()
318 hdr->rad[i] = buf[idx++]; in drm_dp_decode_sideband_msg_hdr()
695 drm_dp_mst_rad_to_str(txmsg->dst->rad, txmsg->dst->lct, buf, in drm_dp_mst_dump_sideband_msg_tx()
1318 static struct drm_dp_mst_branch *drm_dp_add_mst_branch_device(u8 lct, u8 *rad) in drm_dp_add_mst_branch_device() argument
1328 memcpy(mstb->rad, rad, lc in drm_dp_add_mst_branch_device()
2020 drm_dp_calculate_rad(struct drm_dp_mst_port *port, u8 *rad) drm_dp_calculate_rad() argument
2059 u8 rad[8], lct; drm_dp_port_set_pdt() local
2530 drm_dp_get_mst_branch_device(struct drm_dp_mst_topology_mgr *mgr, u8 lct, u8 *rad) drm_dp_get_mst_branch_device() argument
[all...]
/third_party/skia/src/core/
H A DSkPathBuilder.cpp454 SkPathBuilder& SkPathBuilder::arcTo(SkPoint rad, SkScalar angle, SkPathBuilder::ArcSize arcLarge, in arcTo() argument
463 if (!rad.fX || !rad.fY) { in arcTo()
471 SkScalar rx = SkScalarAbs(rad.fX); in arcTo()
472 SkScalar ry = SkScalarAbs(rad.fY); in arcTo()
/third_party/skia/samplecode/
H A DSamplePathClip.cpp272 const SkScalar rad = 8; in hit_test() local
275 return dx*dx + dy*dy <= rad*rad; in hit_test()
/kernel/linux/linux-5.10/include/linux/iio/
H A Diio.h727 * IIO_DEGREE_TO_RAD() - Convert degree to rad
730 * Returns the given value converted from degree to rad
735 * IIO_RAD_TO_DEGREE() - Convert rad to degree
736 * @rad: A value in rad
738 * Returns the given value converted from rad to degree
740 #define IIO_RAD_TO_DEGREE(rad) \
741 (((rad) * 18000000ULL + 314159ULL / 2) / 314159ULL)
/kernel/linux/linux-6.6/include/linux/iio/
H A Diio.h765 * IIO_DEGREE_TO_RAD() - Convert degree to rad
768 * Returns the given value converted from degree to rad
773 * IIO_RAD_TO_DEGREE() - Convert rad to degree
774 * @rad: A value in rad
776 * Returns the given value converted from rad to degree
778 #define IIO_RAD_TO_DEGREE(rad) \
779 (((rad) * 18000000ULL + 314159ULL / 2) / 314159ULL)

Completed in 25 milliseconds

1234