/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | graphic_math.cpp | 42 int16_t degree = static_cast<int16_t>(MATH_ROUND(angle)); in Sin() 43 degree = degree % CIRCLE_IN_DEGREE; in Sin() 44 if (degree < 0) { in Sin() 45 degree = CIRCLE_IN_DEGREE + degree; in Sin() 48 if (degree <= QUARTER_IN_DEGREE) { in Sin() 49 return g_sinValues[degree]; in Sin() 50 } else if (degree <= SEMICIRCLE_IN_DEGREE) { in Sin() 51 return g_sinValues[SEMICIRCLE_IN_DEGREE - degree]; in Sin() 52 } else if (degree <= THREE_QUARTER_IN_DEGREE) { in Sin() 53 return -g_sinValues[degree - SEMICIRCLE_IN_DEGREE]; in Sin() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/ |
H A D | sk_image_filter_factory_unittest.cpp | 210 float degree = 0.5; variable 214 1, 0, 0, 0, degree, 215 0, 1, 0, 0, degree, 216 0, 0, 1, 0, degree, 237 float degree = -1.0; variable 241 1, 0, 0, 0, degree, 242 0, 1, 0, 0, degree, 243 0, 0, 1, 0, degree, 264 float degree = 1.0; variable 268 1, 0, 0, 0, degree, [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | render_loading_progress.cpp | 240 if (degree > 360.0) { in GetCometScaleByDegree() 241 degree = degree - 360.0; in GetCometScaleByDegree() 243 if (degree >= 0.0 && degree <= 180.0) { in GetCometScaleByDegree() 244 return 1.0 - 0.35 * degree / 180.0; in GetCometScaleByDegree() 246 if (degree >= 180.0 && degree <= 360.0) { in GetCometScaleByDegree() 247 return 0.65 + 0.35 * (degree - 180.0) / 180.0; in GetCometScaleByDegree() 258 if (degree > 360.0) { in GetCometAlphaByDegree() 259 degree = degree - 360.0; in GetCometAlphaByDegree() 261 if (degree >= 15.0 && degree <= 180.0) { in GetCometAlphaByDegree() 262 return 1.0 - 0.8 * (degree - 15.0) / (180.0 - 15.0); in GetCometAlphaByDegree() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/ |
H A D | matrix.cpp | 33 void Matrix::Rotate(scalar degree, scalar px, scalar py) in Rotate() argument 35 matrixImplPtr->Rotate(degree, px, py); in Rotate() 68 void Matrix::PreRotate(scalar degree) in PreRotate() argument 70 matrixImplPtr->PreRotate(degree); in PreRotate() 73 void Matrix::PostRotate(scalar degree) in PostRotate() argument 75 matrixImplPtr->PostRotate(degree); in PostRotate() 78 void Matrix::PostRotate(scalar degree, scalar px, scalar py) in PostRotate() argument 80 matrixImplPtr->PostRotate(degree, px, py); in PostRotate() 215 void Matrix::PreRotate(scalar degree, scalar px, scalar py) in PreRotate() argument 217 matrixImplPtr->PreRotate(degree, px, py); in PreRotate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkmatrix_fuzzer/ |
H A D | matrix_fuzzer.cpp | 47 float degree = GetObject<float>(); in NativeMatrixTest001() local 59 OH_Drawing_Matrix* matrixTwo = OH_Drawing_MatrixCreateRotation(degree, x, y); in NativeMatrixTest001() 90 float degree = GetObject<float>(); in NativeMatrixTest002() local 107 OH_Drawing_MatrixPreRotate(nullptr, degree, px, py); in NativeMatrixTest002() 108 OH_Drawing_MatrixPreRotate(matrix, degree, px, py); in NativeMatrixTest002() 113 OH_Drawing_MatrixPostRotate(nullptr, degree, px, py); in NativeMatrixTest002() 114 OH_Drawing_MatrixPostRotate(matrix, degree, px, py); in NativeMatrixTest002() 134 float degree = GetObject<float>(); in NativeMatrixTest003() local 150 OH_Drawing_MatrixRotate(nullptr, degree, px, py); in NativeMatrixTest003() 151 OH_Drawing_MatrixRotate(matrix, degree, px, py); in NativeMatrixTest003()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/skia_effectChain/src/ |
H A D | sk_image_filter_factory.cpp | 31 sk_sp<SkImageFilter> SKImageFilterFactory::Brightness(float degree) in Brightness() argument 34 1, 0, 0, 0, degree, in Brightness() 35 0, 1, 0, 0, degree, in Brightness() 36 0, 0, 1, 0, degree, in Brightness()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_matrix.cpp | 43 void SkiaMatrix::Rotate(scalar degree, scalar px, scalar py) in Rotate() argument 45 skMatrix_.setRotate(degree, px, py); in Rotate() 78 void SkiaMatrix::PreRotate(scalar degree) in PreRotate() argument 80 skMatrix_.preRotate(degree); in PreRotate() 83 void SkiaMatrix::PostRotate(scalar degree) in PostRotate() argument 85 skMatrix_.postRotate(degree); in PostRotate() 88 void SkiaMatrix::PostRotate(scalar degree, scalar px, scalar py) in PostRotate() argument 90 skMatrix_.postRotate(degree, px, py); in PostRotate() 259 void SkiaMatrix::PreRotate(scalar degree, scalar px, scalar py) in PreRotate() argument 261 skMatrix_.preRotate(degree, px, py); in PreRotate()
|
H A D | skia_matrix.h | 41 void Rotate(scalar degree, scalar px, scalar py) override; 50 void PreRotate(scalar degree) override; 51 void PostRotate(scalar degree) override; 52 void PostRotate(scalar degree, scalar px, scalar py) override; 86 void PreRotate(scalar degree, scalar px, scalar py) override;
|
/ohos5.0/foundation/window/window_manager/dmserver/src/ |
H A D | sensor_connector.cpp | 167 int degree = -1; in CalcRotationDegree() local 169 return degree; in CalcRotationDegree() 172 degree = 90 - static_cast<int>(round(atan2(y, -x) / M_PI * 180)); in CalcRotationDegree() 174 return degree >= 0 ? degree % 360 : degree % 360 + 360; in CalcRotationDegree()
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/test/unittest/ |
H A D | boot_animation_operation_test.cpp | 81 int32_t degree = 0; variable 82 operation.InitRsSurfaceNode(degree); 94 int32_t degree = 0; variable 95 operation.InitRsSurfaceNode(degree);
|
/ohos5.0/foundation/multimodalinput/input/service/crown_transform_processor/src/ |
H A D | crown_transform_processor.cpp | 166 double degree = libinput_event_pointer_get_axis_value_discrete(rawPointerEvent, in HandleCrownRotateBeginAndUpdate() local 174 velocity = (degree * MICROSECONDS_PER_SECOND) / (currentTime - lastTime_); in HandleCrownRotateBeginAndUpdate() 176 degree = DEGREE_ZERO; in HandleCrownRotateBeginAndUpdate() 185 " action:%{public}d", degree, velocity, currentTime, action); in HandleCrownRotateBeginAndUpdate() 186 HandleCrownRotatePostInner(velocity, degree, action); in HandleCrownRotateBeginAndUpdate() 190 void CrownTransformProcessor::HandleCrownRotatePostInner(double velocity, double degree, int32_t ac… in HandleCrownRotatePostInner() argument 218 pointerEvent_->SetAxisValue(PointerEvent::AXIS_TYPE_SCROLL_VERTICAL, degree); in HandleCrownRotatePostInner()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/ |
H A D | js-apis-uiEffect-sys.md | 42 …uiEffect.createBrightnessBlender({cubicRate:1.0, quadraticRate:1.0, linearRate:1.0, degree:1.0, sa… 109 flyInFlyOutEffect(degree: number, flyMode: FlyMode): Filter 120 | degree | number | 是 | 表示控制飞入飞出形变的程度,取值范围为[0, 1]。<br/>越靠近1,变形程度越明显。<br/>超出取值范围形变不会出现效果。| 239 …uiEffect.createBrightnessBlender({cubicRate:1.0, quadraticRate:1.0, linearRate:1.0, degree:1.0, sa… 270 | degree | number | 否 | 否 | 灰度调整的比例。<br/>取值范围[-20, 20]。 … 288 | degree | number | 否 | 否 | 灰度调整的比例。<br/>取值范围[-20, 20]。 …
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | matrix_impl.h | 41 virtual void Rotate(scalar degree, scalar px, scalar py) = 0; 49 virtual void PreRotate(scalar degree) = 0; 50 virtual void PostRotate(scalar degree) = 0; 51 virtual void PostRotate(scalar degree, scalar px, scalar py) = 0; 81 virtual void PreRotate(scalar degree, scalar px, scalar py) = 0;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_modifier_extractor_test.cpp | 247 float degree = extractor.GetSpherizeDegree(); variable 248 EXPECT_TRUE(degree == 0.f); 289 float degree = extractor.GetLightUpEffectDegree(); variable 290 EXPECT_TRUE(degree == 0.f); 303 float degree = extractor.GetDynamicDimDegree(); variable 304 EXPECT_TRUE(degree == 0.f);
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_arc.cpp | 118 uint16_t degree = FastAtan2(x, y); in CalculateTanDegree() local 119 if ((degree == QUARTER_IN_DEGREE) && (y != 0)) { in CalculateTanDegree() 120 degree--; in CalculateTanDegree() 122 if ((degree == 0) && (x != 0)) { in CalculateTanDegree() 123 degree++; in CalculateTanDegree() 125 return degree; in CalculateTanDegree() 401 return degree; in GetDegreeInQuadrant() 403 return SEMICIRCLE_IN_DEGREE - degree; in GetDegreeInQuadrant() 405 return SEMICIRCLE_IN_DEGREE + degree; in GetDegreeInQuadrant() 407 return CIRCLE_IN_DEGREE - degree; in GetDegreeInQuadrant() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | matrix.h | 74 void Rotate(scalar degree, scalar px, scalar py); 86 void PreRotate(scalar degree); 88 void PostRotate(scalar degree); 97 void PostRotate(scalar degree, scalar px, scalar py); 272 void PreRotate(scalar degree, scalar px, scalar py);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | transform_convertor.cpp | 218 auto degree = StringUtils::StringToDegree(offsets[3]); in __anonc5ef80110702() local 220 … AnimationType::ROTATE_3D, time, RotateOperation { dx, dy, dz, static_cast<float>(degree) }); in __anonc5ef80110702() 225 auto degree = StringUtils::StringToDegree(typeValue); in __anonc5ef80110802() local 227 … AnimationType::ROTATE, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) }); in __anonc5ef80110802() 231 auto degree = StringUtils::StringToDegree(typeValue); in __anonc5ef80110902() local 233 … AnimationType::ROTATE_X, time, RotateOperation { 1, 0, 0, static_cast<float>(degree) }); in __anonc5ef80110902() 237 auto degree = StringUtils::StringToDegree(typeValue); in __anonc5ef80110a02() local 239 … AnimationType::ROTATE_Y, time, RotateOperation { 0, 1, 0, static_cast<float>(degree) }); in __anonc5ef80110a02() 243 auto degree = StringUtils::StringToDegree(typeValue); in __anonc5ef80110b02() local 245 … AnimationType::ROTATE_Z, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) }); in __anonc5ef80110b02()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/utils/ |
H A D | dp_utils.cpp | 42 float degree = .0; in TransExifOrientationToDegree() local 44 degree = exifOrientationDegree[orientation]; in TransExifOrientationToDegree() 46 return degree; in TransExifOrientationToDegree()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | matrix2d.cpp | 78 void Matrix2D::Rotate(TransformParam& param, double degree, double rx, double ry) in Rotate() argument 83 degree = degree * OHOS_SEMI_CIRCLE_ANGEL / M_PI; in Rotate() 84 skMatrix = skMatrix.preRotate(degree, rx, ry); in Rotate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_matrix.h | 194 void OH_Drawing_MatrixPreRotate(OH_Drawing_Matrix*, float degree, float px, float py); 276 void OH_Drawing_MatrixPostRotate(OH_Drawing_Matrix*, float degree, float px, float py); 396 void OH_Drawing_MatrixRotate(OH_Drawing_Matrix*, float degree, float px, float py);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/screen/ |
H A D | screen_pattern.cpp | 46 MMI::Direction ConvertDegreeToMMIRotation(float degree) in ConvertDegreeToMMIRotation() argument 48 if (NearEqual(degree, DIRECTION0)) { in ConvertDegreeToMMIRotation() 51 if (NearEqual(degree, DIRECTION90)) { in ConvertDegreeToMMIRotation() 54 if (NearEqual(degree, DIRECTION180)) { in ConvertDegreeToMMIRotation() 57 if (NearEqual(degree, DIRECTION270)) { in ConvertDegreeToMMIRotation()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_matrix.cpp | 130 void OH_Drawing_MatrixPreRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixPreRotate() argument 137 matrix->PreRotate(degree, px, py); in OH_Drawing_MatrixPreRotate() 160 void OH_Drawing_MatrixPostRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixPostRotate() argument 167 matrix->PostRotate(degree, px, py); in OH_Drawing_MatrixPostRotate() 210 void OH_Drawing_MatrixRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixRotate() argument 217 matrix->Rotate(degree, px, py); in OH_Drawing_MatrixRotate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/ |
H A D | matrixtest.ts | 118 let degree: number = 2; 121 matrix.postRotate(degree, px, py); 123 let c = Math.cos(degree * Math.PI / 180); 124 let s = Math.sin(degree * Math.PI / 180); 337 let degree: number = 2; 340 matrix.preRotate(degree, px, py); 342 let c = Math.cos(degree * Math.PI / 180); 343 let s = Math.sin(degree * Math.PI / 180);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/filter/include/ |
H A D | filter_fly_out_para.h | 31 void SetDegree(float degree) in SetDegree() argument 33 degree_ = degree; in SetDegree()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__matrix_8h.md | 40 …ribute. The matrix is obtained by rotating an identity matrix by a given degree around the rotatio… 45 …awing_matrix) \*, float degree, float px, float py) | Premultiplies a matrix by an identity matrix… 48 …awing_matrix) \*, float degree, float px, float py) | Post multiplies a matrix by an identity matr… 54 …_drawing_matrix) \*, float degree, float px, float py) | Sets a matrix as an identity matrix and r…
|