/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIArc/ |
H A D | index.js | 22 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 28 ctx.arc(32768,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 34 ctx.arc(50,-32769,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 40 ctx.arc(50,50,32768,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 46 ctx.arc(50,50,30,Math.PI*2*(32768/360),Math.PI*2*(90/360),false); 52 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(-32769/360),false); 58 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360)); 64 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 70 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),true); 76 ctx.arc(100,70,50,Math.PI*2*(10/360),Math.PI*2*(1000/360),false); [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIBeginPath/ |
H A D | index.js | 49 ctx.arc(100,50,50,Math.PI*2*(30/360),Math.PI*2*(150/360),false); 77 ctx.arc(100,50,50,Math.PI*2*(30/360),Math.PI*2*(150/360),false); 84 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 85 ctx.arc(100,50,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 92 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 101 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 109 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 128 ctx.arc(100,50,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 138 ctx.arc(100,50,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 144 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIClosePath/ |
H A D | index.js | 86 ctx.arc(100,100,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 95 ctx.arc(100,100,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 101 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 103 ctx.arc(150,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 109 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 152 ctx.arc(120,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 161 ctx.arc(120,70,50,Math.PI*2*(30/360),Math.PI*2*(150/360),false); 168 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 169 ctx.arc(150,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 176 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIStroke/ |
H A D | index.js | 24 ctx.arc(100,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 38 ctx.arc(100,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 46 ctx.arc(100,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 51 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 53 ctx.arc(100,70,50,Math.PI*2*(150/360),Math.PI*2*(30/360),false); 58 ctx.arc(50,50,30,Math.PI*2*(0/360),Math.PI*2*(90/360),false);
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIPerformance/ |
H A D | index.js | 73 ctx.arc(80,z,5,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 81 ctx.arc(80,z+10,5,Math.PI*2*(0/360),Math.PI*2*(90/360),false); 123 ctx.arc(170,z,5,Math.PI*2*(0/360),Math.PI*2*(140/360),false); 165 ctx.arc(160,30,10,Math.PI*2*(0/360),Math.PI*2*(360/360),false);
|
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/ |
H A D | geometry_bezier_arc.cpp | 70 startAngle = Fmod(startAngle, FLOATNUM * PI); in Init() 71 if (sweepAngle <= -FLOATNUM * PI) { in Init() 72 sweepAngle = -FLOATNUM * PI; in Init() 74 if (sweepAngle >= FLOATNUM * PI) { in Init() 75 sweepAngle = FLOATNUM * PI; in Init() 96 totalSweep -= PI * HALFNUM; in Init() 97 localSweep = -PI * HALFNUM; in Init() 104 totalSweep += PI * HALFNUM; in Init() 105 localSweep = PI * HALFNUM; in Init() 202 sweepAngle -= PI * FLOATNUM; in Init() [all …]
|
H A D | geometry_curves.cpp | 236 if (da >= PI) { in Recursive() 237 da = TWO_TIMES * PI - da; in Recursive() 481 return (cuspLimit_ == 0.0f) ? 0.0f : PI - cuspLimit_; in CuspLimit() 591 if (dxTemp >= PI) { in Recursive() 592 dxTemp = FLOATNUM * PI - dxTemp; in Recursive() 615 if (dxTemp >= PI) { in Recursive() 616 dxTemp = FLOATNUM * PI - dxTemp; in Recursive() 640 if (dxTemp >= PI) { in Recursive() 641 dxTemp = FLOATNUM * PI - dxTemp; in Recursive() 643 if (dyTemp >= PI) { in Recursive() [all …]
|
H A D | geometry_arc.cpp | 73 endAngle += PI * FLOATNUM; in Normalize() 77 startAngle += PI * FLOATNUM; in Normalize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | render_triangle.cpp | 25 const double PI = 3.14; in Calculate() local 31 double bottomAngle = PI - std::atan(width / 2.0 / height) * 2.0; in Calculate() 32 double topAngle = PI - std::atan(height * 2.0 / width); in Calculate() 37 double endAngle = PI + PI / 2.0; in Calculate() 46 startAngle = PI + PI / 2.0; in Calculate() 55 startAngle = PI / 2.0 - bottomAngle / 2.0; in Calculate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/ |
H A D | SphereGraph.js | 28 …, heightSegments = 16, phiStart = 0, phiLength = Math.PI * 2, thetaStart = 0, thetaLength = Math.P… 36 const thetaEnd = Math.min(thetaStart + thetaLength, Math.PI); 47 let theta = i * Math.PI / this.heightSegments; 54 else if (i === heightSegments && thetaEnd === Math.PI) { 83 if (iy !== heightSegments - 1 || thetaEnd < Math.PI) {
|
H A D | Shape.js | 97 static lightInner = Math.cos(Math.PI / 12); 98 static lightOuter = Math.cos(Math.PI / 6);
|
/ohos5.0/docs/zh-cn/application-dev/form/ |
H A D | arkts-ui-widget-page-custom-drawing.md | 35 this.context.arc(circleX, circleY, radius, 2 * Math.PI, 0, true); 44 this.context.arc(leftX, leftY, leftR, 0, 2 * Math.PI, true); 54 this.context.arc(rightX, rightY, rightR, 0, 2 * Math.PI, true); 76 this.context.arc(mouthX, mouthY, mouthR, Math.PI / 1.4, Math.PI / 3.4, true);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/curves/ |
H A D | easing_curve.cpp | 50 return 1.f - BASE_NS::Math::cos((t * BASE_NS::Math::PI) / 2.f); in EaseInSine() 54 return BASE_NS::Math::sin((t * BASE_NS::Math::PI) / 2.f); in EaseOutSine() 58 return -(BASE_NS::Math::cos(BASE_NS::Math::PI * t) - 1.f) / 2.f; in EaseInOutSine() 185 constexpr float c4 = (2.f * BASE_NS::Math::PI) / 3.f; in EaseInElastic() 196 constexpr float c4 = (2.f * BASE_NS::Math::PI) / 3.f; in EaseOutElastic() 207 constexpr float c5 = (2.f * BASE_NS::Math::PI) / 4.5f; in EaseInOutElastic()
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | time-styles-shift.md | 64 let theta = (n - 2) * (Math.PI * 2) / 12; 76 let theta = (hour - 3) * 2 * Math.PI / 12; 94 theta = (minute - 15) * 2 * Math.PI / 60; 112 theta = (seconds - 15) * 2 * Math.PI / 60; 229 let theta = (n - 2) * (Math.PI * 2) / 12; 237 let theta = (hour - 3) * 2 * Math.PI / 12; 250 theta = (minute - 15) * 2 * Math.PI / 60; 263 theta = (seconds - 15) * 2 * Math.PI / 60;
|
/ohos5.0/docs/en/application-dev/form/ |
H A D | arkts-ui-widget-page-custom-drawing.md | 35 this.context.arc(circleX, circleY, radius, 2 * Math.PI, 0, true); 44 this.context.arc(leftX, leftY, leftR, 0, 2 * Math.PI, true); 54 this.context.arc(rightX, rightY, rightR, 0, 2 * Math.PI, true); 76 this.context.arc(mouthX, mouthY, mouthR, Math.PI / 1.4, Math.PI / 3.4, true);
|
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/canvas/indexAPIScenario/ |
H A D | index.js | 23 ctx.arc(150,70,50,Math.PI*2*(30/360),Math.PI*2*(150/360),false);
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/ |
H A D | index.js | 39 ctx.arc(50, 50, 50, Math.PI * 2 * (1 / 36), Math.PI * 2 * (5 / 36), true);
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/ |
H A D | XMat4.js | 84 tmpmat.initRotateMatX((x * Math.PI) / 180); 88 tmpmat.initRotateMatY((y * Math.PI) / 180); 92 tmpmat.initRotateMatZ((z * Math.PI) / 180);
|
/ohos5.0/base/msdp/device_status/libs/src/algorithm/ |
H A D | algo_vertical.cpp | 59 algoPara_.pitch = -atan2(algoPara_.y, algoPara_.z) * (ANGLE_180_DEGREE / PI); in ExecuteOperation() 60 algoPara_.roll = atan2(algoPara_.x, algoPara_.z) * (ANGLE_180_DEGREE / PI); in ExecuteOperation()
|
H A D | algo_horizontal.cpp | 53 algoPara_.pitch = -atan2(algoPara_.y, algoPara_.z) * (ANGLE_180_DEGREE / PI); in ExecuteOperation() 54 algoPara_.roll = atan2(algoPara_.x, algoPara_.z) * (ANGLE_180_DEGREE / PI); in ExecuteOperation()
|
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/common/ |
H A D | paint.cpp | 298 transfrom_.Rotate(-rotateAngle_ * PI / BOXER); in Scale() 300 transfrom_.Rotate(rotateAngle_ * PI / BOXER); in Scale() 310 transfrom_.Rotate(angle * PI / BOXER); in Rotate() 317 transfrom_.Rotate(angle * PI / BOXER); in Rotate()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | mathf.h | 172 static constexpr float PI = 3.141592653f; in BASE_BEGIN_NAMESPACE() local 175 static constexpr float DEG2RAD = PI * 2.0f / 360.0f; in BASE_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/ |
H A D | cpu_contrast_algo.cpp | 35 constexpr double PI = 3.14159265; variable 63 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyRGBA8888() 110 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyYUVNV21() 167 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyYUVNV12()
|
/ohos5.0/foundation/multimodalinput/input/service/window_manager/src/ |
H A D | knuckle_divergent_point.cpp | 30 constexpr double PI { 3.14159265358979323846f }; variable 108 double baseVelocity = u(randomEngine) * DOUBLE * PI; in Reset()
|
/ohos5.0/foundation/window/window_manager/utils/include/ |
H A D | wm_math.h | 24 constexpr float PI = 3.14159265f; variable 36 return degrees * PI / 180.0f; in ToRadians() 41 return radians * 180.0f / PI; in ToDegrees()
|