提交 4f8f9587 编写于 作者: W wangtiantian

IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I3ZDVW

Description:support cmath sin function
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wangtiantian19@huawei.com>
上级 50ef4fc3
......@@ -137,8 +137,8 @@ float TypedText::GetAngleForArcLen(float len,
void TypedText::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, float& posY)
{
posX = arcCenter.x + (static_cast<float>(radius) * Sin(MATH_ROUND(angle)));
posY = arcCenter.y - (static_cast<float>(radius) * Sin(MATH_ROUND(angle + QUARTER_IN_DEGREE)));
posX = arcCenter.x + (static_cast<float>(radius) * Sin(angle));
posY = arcCenter.y - (static_cast<float>(radius) * Sin(angle + QUARTER_IN_DEGREE));
}
uint32_t TypedText::GetNextLine(const char* text, int16_t letterSpace, int16_t maxWidth)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册