Lines Matching refs:sweep_angle
43 float sweep_angle) { in ArcTo() argument
46 new_size, start_angle, sweep_angle); in ArcTo()
52 float sweep_angle) { in ArcToInternal() argument
53 float x0 = cos(sweep_angle / 2); in ArcToInternal()
54 float y0 = sin(sweep_angle / 2); in ArcToInternal()
59 float sn = sin(start_angle + sweep_angle / 2); in ArcToInternal()
60 float cs = cos(start_angle + sweep_angle / 2); in ArcToInternal()
71 bezier.x = pos.x + (size.width * cos(start_angle + sweep_angle)); in ArcToInternal()
72 bezier.y = pos.y + (size.height * sin(start_angle + sweep_angle)); in ArcToInternal()
95 float sweep_angle) { in AddArc() argument
96 if (sweep_angle == 0) in AddArc()
104 if (sweep_angle >= FX_PI * 2) in AddArc()
105 sweep_angle = FX_PI * 2; in AddArc()
106 if (sweep_angle <= -FX_PI * 2) in AddArc()
107 sweep_angle = -FX_PI * 2; in AddArc()
120 if (sweep_angle < 0) { in AddArc()
124 if (total_sweep <= sweep_angle + bezier_arc_angle_epsilon) { in AddArc()
125 local_sweep = sweep_angle - prev_sweep; in AddArc()
132 if (total_sweep >= sweep_angle - bezier_arc_angle_epsilon) { in AddArc()
133 local_sweep = sweep_angle - prev_sweep; in AddArc()