Lines Matching full:radius
8 radius: u32, in draw_part_a()
11 let half_width = (radius as f64 * radius as f64 in draw_part_a()
12 - (radius as f64 - height) * (radius as f64 - height)) in draw_part_a()
18 let y0 = (radius as f64 - height).ceil(); in draw_part_a()
21 let y1 = (radius as f64 * radius as f64 - x as f64 * x as f64).sqrt(); in draw_part_a()
127 radius: (u32, u32), in draw_annulus()
130 let a0 = ((radius.0 - radius.1) as f64).min(radius.0 as f64 * (1.0 - 1.0 / (2f64).sqrt())); in draw_annulus()
131 let a1 = (radius.0 as f64 - a0 - radius.1 as f64).max(0.0); in draw_annulus()
133 check_result!(draw_part_a::<B, _>(a0, radius.0, |p, r| draw_sweep_line( in draw_annulus()
141 check_result!(draw_part_a::<B, _>(a0, radius.0, |p, r| draw_sweep_line( in draw_annulus()
149 check_result!(draw_part_a::<B, _>(a0, radius.0, |p, r| draw_sweep_line( in draw_annulus()
157 check_result!(draw_part_a::<B, _>(a0, radius.0, |p, r| draw_sweep_line( in draw_annulus()
168 radius.0 as f64 - a0, in draw_annulus()
202 radius.1 as i32, in draw_annulus()
203 radius.0 as i32, in draw_annulus()
207 radius.1 as i32, in draw_annulus()
208 radius.0 as i32, in draw_annulus()
212 radius.1 as i32, in draw_annulus()
213 radius.0 as i32, in draw_annulus()
217 radius.1 as i32, in draw_annulus()
218 radius.0 as i32, in draw_annulus()
222 let d_inner = ((radius.1 as f64) / (2f64).sqrt()) as i32; in draw_annulus()
223 let d_outter = (((radius.0 as f64) / (2f64).sqrt()) as i32).min(radius.1 as i32 - 1); in draw_annulus()
224 let d_outter_actually = (radius.1 as i32).min( in draw_annulus()
225 (radius.0 as f64 * radius.0 as f64 - radius.1 as f64 * radius.1 as f64 / 2.0) in draw_annulus()
278 mut radius: u32, in draw_circle()
287 let inner_radius = radius - (style.stroke_width() / 2).min(radius); in draw_circle()
288 radius += style.stroke_width() / 2; in draw_circle()
290 return draw_annulus(b, center, (radius, inner_radius), style); in draw_circle()
296 let min = (f64::from(radius) * (1.0 - (2f64).sqrt() / 2.0)).ceil() as i32; in draw_circle()
297 let max = (f64::from(radius) * (1.0 + (2f64).sqrt() / 2.0)).floor() as i32; in draw_circle()
302 range.start() + center.1 - radius as i32, in draw_circle()
303 range.end() + center.1 - radius as i32, in draw_circle()
307 let dy = dy - radius as i32; in draw_circle()
310 let lx = (f64::from(radius) * f64::from(radius) in draw_circle()