Skip to content

v2.20.1.1

Compare
Choose a tag to compare
@Tronald Tronald released this 02 Oct 01:30
· 18 commits to master since this release
758259f
  • Adds ability to estimate time of day from sun azimuth.
//Create a coordinate and specify a date.
Coordinate c = new Coordinate(49, -122, new DateTime(2023, 9, 30));

//Set local UTC offset as desired.
c.Offset = -7;
 
//Set current sun azimuth in degrees E of N
double az = 120;

//Determine time of day. Default azimuth accuracy error delta is 1 degree by default, 
//but it is set at .5 for this example.
DateTime? t = Celestial.Get_Time_At_Solar_Azimuth(az, c, .5);
           
Console.WriteLine($"{t}"); //9/30/2023 9:21:44 AM
  • Adds "out of bounds" check to UTM initialization, allowing users to detect over projection.
var utm = new UniversalTransverseMercator("Q", 61, 581943.5, 2111989.8);
utm.Out_Of_Bounds; //true.  zone 61 is outside of limits
  • Deprecates 'AstrologicalSigns' class and replaces with new 'AlmanacMoonName' class.

  • Various documentation fixes.