Andrew Tribick
e6a7b32fee
Remove string_view compatibility headers
2021-12-28 21:14:29 +01:00
Andrew Tribick
9651e9e265
Use inline constexpr for constants in header files
2021-12-28 21:14:29 +01:00
Andrew Tribick
11c0361324
Fixes for the Windows build
...
- Move the compatibility classes into the cel17 namespace
- Skip generating resource translations if Perl not present
- Use fmt/ostream.h instead of fmt/printf.h for string_view
2021-10-18 09:58:33 +03:00
Hleb Valoshka
5f911ca18e
Add ISO-8801 time format used in URL to astro::Date
2021-03-08 14:08:36 +03:00
Hleb Valoshka
ba7e0602a0
Remove 'using namespace std' from header files
2021-03-08 14:08:36 +03:00
Hleb Valoshka
8f46b2b978
astro - use std::string_view where appropriate
2021-03-08 14:08:36 +03:00
Hleb Valoshka
0dab2d9d5b
astro - add useful literals
...
* au (astronomic units)
* ly (light years)
* c (speed of light)
2021-03-08 14:08:36 +03:00
Hleb Valoshka
ddbe9ddd1d
Refactor astro.*/url.* to remove extern global variables
2020-07-12 10:41:53 +03:00
Hleb Valoshka
1c668d3d7f
Fix warnings reported by clang/gcc
2020-06-20 10:11:09 +03:00
Hleb Valoshka
bb1f3aefe5
Add support for body mass units ( Closes : #513 )
2019-12-05 11:37:45 +03:00
Hleb Valoshka
81aa6f43bc
Remove support for old vector math
2019-03-16 18:21:50 +03:00
Hleb Valoshka
8790e84a4c
Wrap compatibility methods with #ifdef __CELVEC__
2018-10-07 13:38:25 +03:00
Hleb Valoshka
f9d096d6da
Mark some methods as constexpr and replace with templates
2018-09-22 23:42:03 +03:00
Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka
882e4ecf28
fix whitespaces and indents
...
trailing spaces are removed
tabs are replaced with 4 spaces
# Conflicts:
# src/celengine/cmdparser.cpp
# src/celengine/command.cpp
# src/celestia/celestiacore.cpp
# src/celestia/celestiacore.h
# src/celestia/qt/qtappwin.cpp
# src/celestia/qt/qtglwidget.cpp
# src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Andrew Tribick
a2191a3650
Added units support to parser and tokenizer. Units are specified inside angle brackets after the property name.
2009-12-16 19:23:51 +00:00
Chris Laurel
272a074544
Miscellaneous Eigenization; cleaned up obsolete functions in astro.cpp.
2009-07-23 03:51:42 +00:00
Chris Laurel
f73aad83f3
Eigenized picking code. Added new conversion methods to UniversalCoord that
...
abstract Celestia's internal units.
2009-07-16 02:28:00 +00:00
Chris Laurel
7272945657
First round of Eigen-izing the core Celestia code.
2009-07-15 03:06:30 +00:00
Chris Laurel
2a9b4586ef
Implemented functions to convert between equatorial and galactic coordinate systems.
2008-05-29 21:26:17 +00:00
Chris Laurel
6f39d5c67b
Added a systemDate() method to the astro::Date class.
2008-04-23 04:18:01 +00:00
Chris Laurel
bf5b70e87f
Moved SOLAR_POWER and SOLAR_IRRADIANCE constants to astro namespace.
2008-02-26 22:51:37 +00:00
Chris Laurel
a6cc486542
Rewrote observer class to use 1.5.0 reference frames. The FrameOfReference
...
class is replaced by the new ObserverFrame class, which is a wrapper for
ReferenceFrame. Small changes to a lot of file were necessary, in many cases
simply because the CoordinateSystem enum was moved from astro to
ObserverFrame. This change was primarily a refactoring to make future
development easier and improve performance be eliminating redundant
frame -> universal conversions of the observer position. The one change that
will be apparent to users is the redefinition of the chase and phase lock
frames. Previously, these used the spin axis of the reference object to define
the secondary frame axis. Now, the secondary axis is the position vector in
chase mode, and the velocity vector in phase lock mode.
2008-02-08 21:46:02 +00:00
Christophe Teyssier
be1a0b9301
New Date/Time formating
2008-01-07 23:27:43 +00:00
Vincent Giangiulio
66f30edc7e
Added a decimalToHourMinSec angle conversion method.
2007-12-17 23:38:41 +00:00
Chris Laurel
664a4ddc38
Code cleanup:
...
- Removed remaining references to OrbitReferencePlane
- Replaced instances of constant for J2000 obliquity with astro::J2000Obliquity
2006-11-06 06:18:09 +00:00
Chris Laurel
522e11c88b
Fixed backward AUtoLightYears conversion function.
2006-09-08 16:33:06 +00:00
Chris Laurel
c2d64689f5
Corrected speed of light in KM_PER_LY constant. Will break some cel URLs, so a compatibility fix may be necessary.
2006-09-08 05:54:55 +00:00
Chris Laurel
077b63eac8
Fixed two bugs in time functions TDBcorrection and UTCtoTAI
2006-09-02 22:52:48 +00:00
Chris Laurel
fcaae7d93e
Added functions to convert between various astronomical time systems: UTC, TAI, TT, and TDB
2006-09-01 07:20:50 +00:00
Chris Laurel
55ef4fa4f6
Added double precision parsec to light year conversion.
2005-07-18 17:21:58 +00:00
Chris Laurel
2a0aa9cd3c
Corrected error in astro::anomaly() (and renamed from Anomaly in order be consistent with method name capitalization.)
2005-07-13 10:09:58 +00:00
Chris Laurel
2fdf2618c0
Updated render and selection code so planets orbiting stars in multiple system appear in the right place. Made a similar fix for orbit paths.
2004-09-28 07:44:34 +00:00
Chris Laurel
5fb0d163a6
Implemented synchronous orbits which allow easy placement of objects on the surface of planets.
2004-03-10 11:01:48 +00:00
Chris Laurel
43a0ac3c1a
Fixed the orbit of the Moon so it doesn't crash into the Earth in 4000AD.
2002-11-05 08:18:00 +00:00
Chris Laurel
d6c5756b92
Added missing string header; fixed scanf in parseDate
2002-11-04 17:51:56 +00:00
Chris Laurel
ad765ed38d
Added support for date strings for Epoch, Beginning, and Ending fields in .ssc files.
2002-10-28 05:21:16 +00:00
Chris Laurel
80b23b4930
Added some more astronomical constants
2002-04-30 06:52:46 +00:00
Chris Laurel
14102148e8
const-ed parameters for heliocentricPosition and universalPosition
2002-03-21 22:37:28 +00:00
Chris Laurel
fd75d26aa5
Improved rendering of highly elliptical orbits; fixed positioning of star and constellation labels.
2002-03-19 01:07:24 +00:00
Chris Laurel
ebdbd6e87b
Added functions for converting to and from microLightYears.
2002-03-14 21:43:52 +00:00
Deon Ramsey
2218b95a72
Autoconf distribute extension & bugfixes
2001-12-18 23:00:26 +00:00
Clint Weisbrod
fd1465819a
Added decimalToDegMinSec() and degMinSecToDecimal() to convert angles between floating point representation and degrees/minutes/seconds.
2001-11-28 16:03:11 +00:00
Chris Laurel
38e79736c5
Reorganized source tree into multiple directories.
2001-11-28 01:50:04 +00:00