-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2f8849
commit d3ad049
Showing
4 changed files
with
131 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// KPCAASun.h | ||
// SwiftAA | ||
// | ||
// Created by Cédric Foellmi on 10/07/15. | ||
// Copyright (c) 2015 onekiloparsec. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "KPCAA3DCoordinate.h" | ||
|
||
@interface KPCAASun : NSObject | ||
|
||
+ (double)GeometricEclipticLongitude:(double)JD; | ||
+ (double)GeometricEclipticLatitude:(double)JD; | ||
+ (double)GeometricEclipticLongitudeJ2000:(double)JD; | ||
+ (double)GeometricEclipticLatitudeJ2000:(double)JD; | ||
+ (double)GeometricFK5EclipticLongitude:(double)JD; | ||
+ (double)GeometricFK5EclipticLatitude:(double)JD; | ||
+ (double)ApparentEclipticLongitude:(double)JD; | ||
+ (double)ApparentEclipticLatitude:(double)JD; | ||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesMeanEquinox:(double)JD; | ||
+ (KPCAA3DCoordinate *)EclipticRectangularCoordinatesJ2000:(double)JD; | ||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesJ2000:(double)JD; | ||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesB1950:(double)JD; | ||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesAnyEquinox:(double)JD JDEquinox:(double)JDEquinox; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// | ||
// KPCAASun.m | ||
// SwiftAA | ||
// | ||
// Created by Cédric Foellmi on 10/07/15. | ||
// Copyright (c) 2015 onekiloparsec. All rights reserved. | ||
// | ||
|
||
#import "KPCAASun.h" | ||
#import "AASun.h" | ||
|
||
@interface KPCAA3DCoordinate () | ||
+ (KPCAA3DCoordinate *)coordinateByWrapping:(CAA3DCoordinate)wrappedCoord; | ||
- (CAA3DCoordinate)wrappedCoord; | ||
@end | ||
|
||
@implementation KPCAASun | ||
|
||
+ (double)GeometricEclipticLongitude:(double)JD | ||
{ | ||
return CAASun::GeometricEclipticLongitude(JD); | ||
} | ||
|
||
+ (double)GeometricEclipticLatitude:(double)JD | ||
{ | ||
return CAASun::GeometricEclipticLatitude(JD); | ||
} | ||
|
||
+ (double)GeometricEclipticLongitudeJ2000:(double)JD | ||
{ | ||
return CAASun::GeometricEclipticLongitudeJ2000(JD); | ||
} | ||
|
||
+ (double)GeometricEclipticLatitudeJ2000:(double)JD | ||
{ | ||
return CAASun::GeometricEclipticLatitudeJ2000(JD); | ||
} | ||
|
||
+ (double)GeometricFK5EclipticLongitude:(double)JD | ||
{ | ||
return CAASun::GeometricFK5EclipticLongitude(JD); | ||
} | ||
|
||
+ (double)GeometricFK5EclipticLatitude:(double)JD | ||
{ | ||
return CAASun::GeometricFK5EclipticLatitude(JD); | ||
} | ||
|
||
+ (double)ApparentEclipticLongitude:(double)JD | ||
{ | ||
return CAASun::ApparentEclipticLongitude(JD); | ||
} | ||
|
||
+ (double)ApparentEclipticLatitude:(double)JD | ||
{ | ||
return CAASun::ApparentEclipticLatitude(JD); | ||
} | ||
|
||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesMeanEquinox:(double)JD | ||
{ | ||
return [KPCAA3DCoordinate coordinateByWrapping:CAASun::EquatorialRectangularCoordinatesMeanEquinox(JD)]; | ||
} | ||
|
||
+ (KPCAA3DCoordinate *)EclipticRectangularCoordinatesJ2000:(double)JD | ||
{ | ||
return [KPCAA3DCoordinate coordinateByWrapping:CAASun::EclipticRectangularCoordinatesJ2000(JD)]; | ||
} | ||
|
||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesJ2000:(double)JD | ||
{ | ||
return [KPCAA3DCoordinate coordinateByWrapping:CAASun::EquatorialRectangularCoordinatesJ2000(JD)]; | ||
} | ||
|
||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesB1950:(double)JD | ||
{ | ||
return [KPCAA3DCoordinate coordinateByWrapping:CAASun::EquatorialRectangularCoordinatesB1950(JD)]; | ||
} | ||
|
||
+ (KPCAA3DCoordinate *)EquatorialRectangularCoordinatesAnyEquinox:(double)JD JDEquinox:(double)JDEquinox | ||
{ | ||
return [KPCAA3DCoordinate coordinateByWrapping:CAASun::EquatorialRectangularCoordinatesAnyEquinox(JD, JDEquinox)]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters