fn point_mapper(radius: f32) -> impl Fn(i32) -> Point2 {
  move |deg| {
    let angle = deg_to_rad(deg as f32);
    let x = angle.cos() * radius;
    let y = angle.sin() * radius;
    pt2(x, y)
  }
}
// returns a closure suitable for a `map` function too convert degrees to points
returns a closure suitable for a `map` function too convert degrees to points
returns a closure suitable for a ` map ` function too convert degrees to points
fn point_mapper(radius: f32) -> impl Fn(i32) -> Point2 {
  move |deg| {
    let angle = deg_to_rad(deg as f32);
    let x = angle.cos() * radius;
    let y = angle.sin() * radius;
    pt2(x, y)
  }
}
fn point_mapper ( radius : f32 ) -> impl Fn ( i32 ) -> Point2 { move | deg | { let angle = deg_to_rad ( deg as f32 ) ; let x = angle . cos ( ) * radius ; let y = angle . sin ( ) * radius ; pt2 ( x , y ) } }
returns a closure suitable for a `map` function too convert degrees to points
returns a closure suitable for a ` map ` function too convert degrees to points
radius
f32