Versions in this module Expand all Collapse all v0 v0.0.1 Sep 8, 2024 Changes in this version + const ATHYG_ABSMAG + const ATHYG_BAYER + const ATHYG_CON + const ATHYG_DEC + const ATHYG_DIST_SRC + const ATHYG_FLAM + const ATHYG_GAIA + const ATHYG_GLIESE + const ATHYG_HD + const ATHYG_HIP + const ATHYG_HR + const ATHYG_ID + const ATHYG_MAG + const ATHYG_PROPER + const ATHYG_RA + const ATHYG_RECORD_LENGTH + const ATHYG_SPECTRUM + const ATHYG_SUN_ID + const ATHYG_TYC + const ATHYG_VX + const ATHYG_VY + const ATHYG_VZ + const ATHYG_X + const ATHYG_Y + const ATHYG_Z + const INVALID_OBJECT_ID + const LABEL_BAYER_ID + const LABEL_FLAMSTEED_ID + const LABEL_GAIA_ID + const LABEL_GLIESE_ID + const LABEL_HIP_ID + const LABEL_HR_ID + const LABEL_PROPER_ID + const LABEL_TYCHO_ID + const MAX_BINARY_STEPS + const MIN_APPARENT_LUMINOSITY + const NO_TRANSLATE_LIMIT + const PCYR_TO_KMSEC + const PC_TO_LY + const PLACEHOLDER_APP_DIST + const PLACEHOLDER_APP_MAG + const PLACEHOLDER_CATALOG_DISTANCE + const PLACEHOLDER_CATALOG_MAGNITUDE + const SOL_ABSMAG + var CONSTELLATION_DATA = Constellations + func AbsMagToLuminosity(absmag float64) float64 + func ApparentMagnitude(star Star) float64 + func AthygIDTypeLookup(id string) string + func AthygTargetIDLookup(atIndex map[string]int, id string) int + func CreateAthygIndex(athygStars []Star) map[string]int + func DirectionCosine(v1 CartesianVector, v2 CartesianVector) float64 + func Distance(star Star) float64 + func GetAthygGaiaLabel(gaia int64) string + func GetAthygStarLabels(star *Star, labelPriorities []int) (string, string) + func GetGenitiveForConstellation(abbreviation string) string + func GetHRLabel(hr int) string + func GetHipLabel(hip int) string + func GetNameForConstellation(abbreviation string) string + func GetTychoLabel(tyc string) string + func KmPerSecToParsecPerYear(kms float64) float64 + func LightYearsToParsecs(ly float64) float64 + func MapGreekLetterName(name string) string + func ParsecPerYearToKmPerSec(pcyr float64) float64 + func ParsecsToLightYears(pc float64) float64 + func ScaledLuminosity(star Star) float64 + func StarPassesFilter(star Star, sightline []float64, dircos float64, minScaledLuminosity float64) bool + func ToDegrees(rad float64) float64 + func ToRadians(deg float64) float64 + func TranslateStarList(list []Star, origin CartesianVector) + type CartesianVector []float64 + func DistanceDelta(star Star, time float64) CartesianVector + func EquatorialToGalactic(v1 CartesianVector) CartesianVector + func PolarToCartesian(v1 SphericalVector) CartesianVector + type ConstellationDetails struct + Abbreviation string + Genitive string + LabelLocation LabelLocations + Name string + type Constellations map[string]ConstellationDetails + type EquatorialPosition [2]float64 + func GetLabelLocationsForConstellation(abbreviation string) []EquatorialPosition + type LabelLocations []EquatorialPosition + type SphericalVector []float64 + func CartesianToEquatorial(v1 CartesianVector) SphericalVector + func CartesianToPolar(v1 CartesianVector) SphericalVector + type Star struct + AbsoluteMag float64 + Constellation string + Designations StarDesignations + ID int + Luminosity float64 + Name string + Position CartesianVector + Spectrum string + Velocity CartesianVector + func CloneStar(originalStar Star) Star + func CreateStarFromAthygRecord(record []string) (*Star, error) + func GetAthygStarByName(athygStars []Star, athygIndex map[string]int, name string) *Star + func GetStarByID(stars []Star, lookupID int) *Star + func GetViewToTargetStar(list []Star, listConfig StarListConfig, concurrency int, subset int) []Star + func ReadAthygData(title string) ([]Star, error) + func SelfTranslateStar(star Star, time float64) Star + func TranslateStar(star1 Star, star2 Star, time float64) Star + func TranslateStarVectorListSubset(list []Star, viewpoint Star, sightline CartesianVector, angle float64, ...) []Star + type StarDesignations struct + Bayer string + Flamsteed string + Gaia int64 + Gliese string + HD int + HIP int + HR int + ProperName string + Tycho string + type StarListConfig struct + Angle float64 + From Star + Magnitude float64 + Time float64 + To Star