Practical Astronomy Algorithms in .NET/C#
Loading...
Searching...
No Matches
PAComet.cs
Go to the documentation of this file.
1using Xunit;
2
3namespace PALib.Tests;
4
5public class PAComet_Tests
6{
7 private readonly PAComet _paComet;
8
9 public PAComet_Tests()
10 {
11 _paComet = new PAComet();
12 }
13
14 [Fact]
16 {
17 Assert.Equal((6, 29, 10, 13, 8.13), _paComet.PositionOfEllipticalComet(0, 0, 0, false, 0, 1, 1, 1984, "Halley"));
18 }
19
20 [Fact]
22 {
23 Assert.Equal((23, 17, 11.53, -33, 42, 26.42, 1.11), _paComet.PositionOfParabolicComet(0, 0, 0, false, 0, 25, 12, 1977, "Kohler"));
24 }
25}
Comet calculations.
Definition PAComet.cs:11
double double double double double cometDistEarth PositionOfEllipticalComet(double lctHour, double lctMin, double lctSec, bool isDaylightSaving, int zoneCorrectionHours, double localDateDay, int localDateMonth, int localDateYear, string cometName)
Definition PAComet.cs:22
double double double double double double double cometDistEarth PositionOfParabolicComet(double lctHour, double lctMin, double lctSec, bool isDaylightSaving, int zoneCorrectionHours, double localDateDay, int localDateMonth, int localDateYear, string cometName)
Definition PAComet.cs:83
void PositionOfEllipticalComet()
Definition PAComet.cs:15
void PositionOfParabolicComet()
Definition PAComet.cs:21
readonly PAComet _paComet
Definition PAComet.cs:7