7 void moveTo(const FloatPoint&);
8 static void createEllipse(const FloatPoint& center, float rx, float ry);
11 extern float cosf (float);
12 extern float sinf (float);
14 const float piFloat = static_cast<float>(3.14159265358979323846);
17 FloatPoint(float x, float y) : m_x(x), m_y(y) { }
22 void Path::createEllipse(const FloatPoint& center, float rx, float ry)
24 float cx = center.x();
25 float cy = center.y();
29 unsigned step = 0, num = 100;
31 float angle = static_cast<float>(step) / num * 2.0f * piFloat;
32 x = cx + cosf(angle) * rx;
33 y = cy + sinf(angle) * ry;
36 path.moveTo(FloatPoint(x, y));