cosinekitty / astronomy

Astronomy Engine: multi-language calculation of Sun, Moon, and planet positions. Predicts lunar phases, eclipses, transits, oppositions, conjunctions, equinoxes, solstices, rise/set times, and other events. Provides vector and angular coordinate transforms among equatorial, ecliptic, horizontal, and galactic orientations.
MIT License
496 stars 63 forks source link

C# AstroVector.ToString() should display coordinates and time #249

Closed cosinekitty closed 1 year ago

cosinekitty commented 2 years ago

Like its Python counterpart, the C# struct AstroVector should have a ToString override that displays x, y, z, t.

Also look for other classes/structs that would benefit from formatting.

cosinekitty commented 1 year ago

Also consider implementing a AstroTime.TryParse function.

cosinekitty commented 1 year ago

These particular C# types now support better string conversions. Over time I will add string conversions for other types as needed/requested.