From d1aaefb49046f05026aa781a7d775a4fce397476 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 14 Apr 2024 22:34:12 +0200 Subject: [PATCH] typo --- doc/scripts/generate_starchart.py | 2 +- src/data/stars.in | 2 +- src/nature.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/scripts/generate_starchart.py b/doc/scripts/generate_starchart.py index 6865283..9dd3295 100755 --- a/doc/scripts/generate_starchart.py +++ b/doc/scripts/generate_starchart.py @@ -34,7 +34,7 @@ MAX_APPARENT_MAGNITUDE = 7.0 print("// This file was autogenerated by \"genrate_starchart.py\" using data from the") print("// HYG database: https://github.com/astronexus/HYG-Database/tree/main/hyg") print("// License: CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/") -print("// Each star's values: [x, y, z, magnitude, color index, distance, name]") +print("// Each star's values: (x, y, z, magnitude, color index, distance, name)") print("[") diff --git a/src/data/stars.in b/src/data/stars.in index 1a43989..6357004 100644 --- a/src/data/stars.in +++ b/src/data/stars.in @@ -1,7 +1,7 @@ // This file was autogenerated by "genrate_starchart.py" using data from the // HYG database: https://github.com/astronexus/HYG-Database/tree/main/hyg // License: CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/ -// Each star's values: [x, y, z, magnitude, color index, distance, name] +// Each star's values: (x, y, z, magnitude, color index, distance, name) [ (1.0,0.0,-0.0,-26.7,0.656,0.0,"Sol"), (-0.1875,-0.2876,-0.9392,-1.44,0.009,2.6371,"Sirius"), diff --git a/src/nature.rs b/src/nature.rs index f716b93..bcddd42 100644 --- a/src/nature.rs +++ b/src/nature.rs @@ -12,7 +12,7 @@ pub const PARSEC2METER: f64 = 3.0857e16; pub const DIST_JUPTER_SUN: f64 = 778479.0e6; pub const EARTH_GRAVITY: f32 = 9.81; -// Each star's values: [x, y, z, magnitude, color index, distance, name] +// Each star's values: (x, y, z, magnitude, color index, distance, name) pub const STARS: &[(f32, f32, f32, f32, f32, f32, &str)] = &include!("data/stars.in"); pub fn star_color_index_to_rgb(color_index: f32) -> (f32, f32, f32) {