/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* [all...] |
/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* [all...] |
/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* [all...] |
/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* [all...] |
/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()
|
/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 | 63 ctx.arc(160,30,10,Math.PI*2*(0/360),Math.PI*2*(360/360),false);
129 ctx.arc(80, z, 5, Math.PI * 2 * (0 / 360), Math.PI * 2 * (90 / 360), false);
137 ctx.arc(80, z + 10, 5, Math.PI * 2 * (0 / 360), Math.PI * 2 * (90 / 360), false);
190 ctx.arc(170, z, 5, Math.PI * 2 * (0 / 360), Math.PI * 2 * (140 / 360), false);
|
/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 * FLOATNU in Init() [all...] |
H A D | geometry_arc.cpp | 73 endAngle += PI * FLOATNUM; in Normalize() 77 startAngle += PI * FLOATNUM; in Normalize()
|
H A D | geometry_curves.cpp | 236 if (da >= PI) { in Recursive() 237 da = TWO_TIMES * PI - da; in Recursive() 476 cuspLimit_ = (angleValue == 0.0f) ? 0.0f : PI - angleValue; in CuspLimit() 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 in Recursive() [all...] |
/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);
|
/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()
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | mathf.h | 172 static constexpr float PI = 3.141592653f; member 175 static constexpr float DEG2RAD = PI * 2.0f / 360.0f;
|
/foundation/multimodalinput/input/service/window_manager/src/ |
H A D | knuckle_divergent_point.cpp | 30 constexpr double PI { 3.14159265358979323846f }; 108 double baseVelocity = u(randomEngine) * DOUBLE * PI; in Reset()
|
/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()
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/ |
H A D | cpu_contrast_algo.cpp | 35 constexpr double PI = 3.14159265; member 64 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyRGBA8888() 112 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyYUVNV21() 170 current = current - scale * 0.1f * sin(ALGORITHM_PARAMTER_FACTOR * PI * current); in OnApplyYUVNV12()
|
/foundation/arkui/ace_engine/test/unittest/core/gestures/ |
H A D | gestures_common_test_ng.h | 69 constexpr double PI = 360.0; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_animation_timing_curve.cpp | 91 float response = 2 * PI * sqrt(mass / stiffness); in CreateSpringCurve() 106 float response = 2 * PI * sqrt(mass / stiffness); in CreateInterpolatingSpring()
|
/foundation/window/window_manager/utils/include/ |
H A D | wm_math.h | 24 constexpr float PI = 3.14159265f; member 36 return degrees * PI / 180.0f; in ToRadians() 41 return radians * 180.0f / PI; in ToDegrees()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
H A D | geometry_math_stroke.h | 121 int32_t divNumber = int32_t(PI / deltaAngle); in CalcCap() 123 deltaAngle = PI / (divNumber + 1); in CalcCap() 351 angleEnd += TWO_TIMES * PI; in CalcArc() 363 angleEnd -= TWO_TIMES * PI; in CalcArc()
|
/foundation/multimedia/image_effect/frameworks/native/render_environment/base/math/ |
H A D | math_utils.h | 36 constexpr const static double PI = 3.14159265358979323846264338327f;
member in OHOS::Media::Effect::MathUtils
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/ |
H A D | common_basics.h | 199 * @brief PI 201 const float PI = 3.1415926f; member
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | curve.h | 156 static constexpr float PI = 3.14f; variable 157 return std::sin(PI * time / 2.0f); // half period
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_common_def.h | 337 constexpr float PI = M_PI; member 339 static const float PI = std::atanf(1.0) * 4; member
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/ |
H A D | vsync_sampler.cpp | 33 constexpr double PI = 3.1415926;
member 310 double scale = 2.0 * PI / period_;
in ComputePhaseLocked()
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_math_test.cpp | 65 float radians = MathHelper::PI, degrees = 180.f; in HWTEST_F()
|