Searched refs:MATH_ROUND (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_line.cpp | 173 int16_t x0Int = MATH_ROUND(x0); in DrawWuLine() 174 int16_t y0Int = MATH_ROUND(y0); in DrawWuLine() 175 int16_t x1Int = MATH_ROUND(x1); in DrawWuLine() 176 int16_t y1Int = MATH_ROUND(y1); in DrawWuLine() 177 int16_t x2Int = MATH_ROUND(x2); in DrawWuLine() 178 int16_t y2Int = MATH_ROUND(y2); in DrawWuLine() 179 int16_t x3Int = MATH_ROUND(x3); in DrawWuLine() 180 int16_t y3Int = MATH_ROUND(y3); in DrawWuLine()
|
H A D | draw_label.cpp | 201 letterInfo.InitData(fontId, fontSize, letter, { MATH_ROUND(posX), MATH_ROUND(posY) }, in DrawArcText()
|
H A D | draw_utils.cpp | 1869 polygon[i].x_ = MATH_ROUND(imgPoint4.x_); 1877 polygon[i].y_ = MATH_ROUND(imgPoint4.y_);
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | typed_text.cpp | 118 rect.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect() 120 rectLetter.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect() 136 transform.Rotate(MATH_ROUND(rotateAngle), Vector2<float>(0, 0)); in GetArcTextRect()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_canvas.cpp | 152 path_->points_.PushBack({MATH_ROUND(center.x + sinma), MATH_ROUND(center.y - cosma)}); in ArcTo() 155 path_->startPos_ = {MATH_ROUND(center.x + sinma), MATH_ROUND(center.y - cosma)}; in ArcTo() 163 path_->points_.PushBack({MATH_ROUND(center.x + sinma), MATH_ROUND(center.y - cosma)}); in ArcTo() 1259 imageView->Rotate(MATH_ROUND(angle), Vector2<float>(0, 0)); in DoDrawImage() 1529 trans.Rotate(MATH_ROUND(angle), Vector2<float>(0, 0)); in DoDrawText()
|
/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()
|
H A D | transform.cpp | 304 polygon_[i].x_ = MATH_ROUND(imgPoint4.x_); in SetMatrix() 312 polygon_[i].y_ = MATH_ROUND(imgPoint4.y_); in SetMatrix()
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | graphic_math.h | 60 #define MATH_ROUND(x) ((x) > 0 ? (int16_t)((x) + 0.5f) : (int16_t)((x) - 0.5f)) macro
|