Astro.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:2k
源码类别:

OpenGL

开发平台:

Visual C++

  1. //
  2. //  Astro.h
  3. //  celestia
  4. //
  5. //  Created by Bob Ippolito on Fri Jun 07 2002.
  6. //  Copyright (c) 2002 Chris Laurel. All rights reserved.
  7. //
  8. #import "CelestiaUniversalCoord.h"
  9. #import "CelestiaVector.h"
  10. @interface NSDate(AstroAPI)
  11. +(NSDate*)dateWithJulian:(NSNumber*)jd;
  12. @end
  13. @interface Astro : NSObject
  14. +(NSString*)stringWithCoordinateSystem:(NSNumber*)n;
  15. +(CelestiaVector*)equatorialToCelestialCart:(NSNumber*)ra declination:(NSNumber*)dec distance:(NSNumber*)distance;
  16. +(CelestiaUniversalCoord*)universalPosition:(CelestiaVector*)heliocentric starPosition:(CelestiaVector*)starPosition;
  17. +(CelestiaVector*)heliocentricPosition:(CelestiaUniversalCoord*)universal starPosition:(CelestiaVector*)starPosition;
  18. +(NSNumber*)sphereIlluminationFraction:(CelestiaVector*)spherePos viewerPosition:(CelestiaVector*)viewerPos;
  19. +(NSNumber*)coordinateSystem:(NSString*)coord;
  20. +(NSNumber*)julianDate:(NSDate*)date;
  21. +(NSNumber*)speedOfLight;
  22. +(NSNumber*)J2000;
  23. +(NSNumber*)G;
  24. +(NSNumber*)solarMass;
  25. +(NSNumber*)earthMass;
  26. +(NSNumber*)lumToAbsMag:(NSNumber*)lum;
  27. +(NSNumber*)lumToAppMag:(NSNumber*)lum lightYears:(NSNumber*)lyrs;
  28. +(NSNumber*)absMagToLum:(NSNumber*)mag;
  29. +(NSNumber*)absToAppMag:(NSNumber*)mag lightYears:(NSNumber*)lyrs;
  30. +(NSNumber*)appToAbsMag:(NSNumber*)mag lightYears:(NSNumber*)lyrs;
  31. +(NSNumber*)lightYearsToParsecs:(NSNumber*)ly;
  32. +(NSNumber*)parsecsToLightYears:(NSNumber*)pc;
  33. +(NSNumber*)lightYearsToKilometers:(NSNumber*)ly;
  34. +(NSNumber*)kilometersToLightYears:(NSNumber*)km;
  35. +(NSNumber*)lightYearsToAU:(NSNumber*)ly;
  36. +(NSNumber*)AUtoLightYears:(NSNumber*)au;
  37. +(NSNumber*)kilometersToAU:(NSNumber*)km;
  38. +(NSNumber*)AUtoKilometers:(NSNumber*)au;
  39. +(NSNumber*)microLightYearsToKilometers:(NSNumber*)mly;
  40. +(NSNumber*)kilometersToMicroLightYears:(NSNumber*)km;
  41. +(NSNumber*)microLightYearsToAU:(NSNumber*)mly;
  42. +(NSNumber*)AUtoMicroLightYears:(NSNumber*)au;
  43. +(NSNumber*)secondsToJulianDate:(NSNumber*)sec;
  44. +(NSNumber*)julianDateToSeconds:(NSNumber*)jd;
  45. +(NSArray*)decimalToDegMinSec:(NSNumber*)angle;
  46. +(NSNumber*)degMinSecToDecimal:(NSArray*)dms;
  47. +(NSArray*)anomaly:(NSNumber*)meanAnamaly eccentricity:(NSNumber*)eccentricity;
  48. +(NSNumber*)meanEclipticObliquity:(NSNumber*)jd;
  49. @end