Home
last modified time | relevance | path

Searched refs:UI_PI (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_math.cpp81 r = UI_PI; in Acos()
144 angle = UI_PI / 2 - (t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7)))); in FastAtan2F()
153 angle = -UI_PI + angle; in FastAtan2F()
158 angle = UI_PI - angle; in FastAtan2F()
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_clip/
H A Dui_test_clip.cpp251 path.LineTo({static_cast<float>(cos((18 + 72 * i - rot) / pi * UI_PI) * outerR + x), in UIKitClipTest003()
252 …static_cast<float>(-sin((18 + 72 * i - rot) / pi * UI_PI) * outerR + y)}); // 18: constant 72: con… in UIKitClipTest003()
254 path.LineTo({static_cast<float>(cos((54 + 72 * i - rot) / pi * UI_PI) * innerR + x), in UIKitClipTest003()
255 …static_cast<float>(-sin((54 + 72 * i - rot) / pi * UI_PI) * innerR + y)}); // 54: constant 72: con… in UIKitClipTest003()
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/
H A Dtyped_text.cpp156 float angle = static_cast<float>(len * SEMICIRCLE_IN_DEGREE) / (UI_PI * realRadius); in GetAngleForArcLen()
166 …float angle = (letterWidth + letterSpace) / (FLOATING_POINT_TWO * radius * UI_PI) * CIRCLE_IN_DEGR… in GetAngleForArcLen()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcanvas_component.cpp2241 …if (((DEGREES_180 * sAngle / UI_PI) > INT16_MAX) || ((DEGREES_180 * sAngle / UI_PI) < INT16_MIN) || in FormatArcAngle()
2242 … ((DEGREES_180 * eAngle / UI_PI) > INT16_MAX) || ((DEGREES_180 * eAngle / UI_PI) < INT16_MIN)) { in FormatArcAngle()
2247 startAngle = static_cast<uint32_t>(DEGREES_180 * sAngle / UI_PI); in FormatArcAngle()
2248 endAngle = static_cast<uint32_t>(DEGREES_180 * eAngle / UI_PI); in FormatArcAngle()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_arc_label.cpp374 float maxLength = static_cast<float>((UI_PI * radius_ * arcAngle) / SEMICIRCLE_IN_DEGREE); in OnMeasureArcTextInfo()
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp451 … int16_t offsetX = static_cast<uint16_t>(angle * letterInfo.radius * UI_PI / SEMICIRCLE_IN_DEGREE); in CalculatedTransformDataInfo()
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dgraphic_math.h77 static constexpr double UI_PI = 3.14159265358979; variable