fn hex_corner(size: f32, i: i32) -> (f32, f32) {
    let angle_deg = 60.0 * (i as f32) + 30.0;
    let angle_rad = (consts::PI / 180.0) * angle_deg;

    (size * angle_rad.cos(), size * angle_rad.sin())
}
/// Calculates one Point-coordinates of a Hexagon
Calculates one Point-coordinates of a Hexagon
Calculates one Point - coordinates of a Hexagon
fn hex_corner(size: f32, i: i32) -> (f32, f32) {
    let angle_deg = 60.0 * (i as f32) + 30.0;
    let angle_rad = (consts::PI / 180.0) * angle_deg;
    (size * angle_rad.cos(), size * angle_rad.sin())
}
fn hex_corner ( size : f32 , i : i32 ) -> ( f32 , f32 ) { let angle_deg = 60.0 * ( i as f32 ) + 30.0 ; let angle_rad = ( consts :: PI / 180.0 ) * angle_deg ; ( size * angle_rad . cos ( ) , size * angle_rad . sin ( ) ) }
Calculates one Point-coordinates of a Hexagon
Calculates one Point - coordinates of a Hexagon
size
f32
i
i32