-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 🚚 organize interfaces and enums
- Loading branch information
Showing
22 changed files
with
116 additions
and
102 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,7 @@ | ||
/** | ||
* Enumeration representing different methods for calculating angular diameter. | ||
*/ | ||
export enum AngularDiameterMethod { | ||
Circle, | ||
Sphere, | ||
} |
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,7 @@ | ||
/** | ||
* Enumeration representing different methods for calculating angular distance. | ||
*/ | ||
export enum AngularDistanceMethod { | ||
Cosine, | ||
Haversine, | ||
} |
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,6 @@ | ||
export enum PassType { | ||
OUT_OF_VIEW = -1, | ||
ENTER = 0, | ||
IN_VIEW = 1, | ||
EXIT = 2, | ||
} |
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,3 @@ | ||
export { AngularDiameterMethod } from './AngularDiameterMethod'; | ||
export { AngularDistanceMethod } from './AngularDistanceMethod'; | ||
export { PassType } from './PassType'; |
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,11 @@ | ||
import { EciVec3, SpaceObjectType } from '../types/types'; | ||
|
||
export interface BaseObjectParams { | ||
id?: number; | ||
name?: string; | ||
type?: SpaceObjectType; | ||
position?: EciVec3; | ||
velocity?: EciVec3; | ||
time?: Date; | ||
active?: boolean; | ||
} |
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,3 @@ | ||
export interface OptionsParams { | ||
notes: string; | ||
} |
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,22 @@ | ||
import { EciVec3, SpaceObjectType, TleLine1, TleLine2 } from '../types/types'; | ||
|
||
/** | ||
* TODO: Reduce unnecessary calls to calculateTimeVariables using optional | ||
* parameters and caching. | ||
*/ | ||
/** | ||
* Information about a space object. | ||
*/ | ||
|
||
export interface SatelliteParams { | ||
name?: string; | ||
rcs?: number; | ||
tle1: TleLine1; | ||
tle2: TleLine2; | ||
type?: SpaceObjectType; | ||
vmag?: number; | ||
sccNum?: string; | ||
intlDes?: string; | ||
position?: EciVec3; | ||
time?: Date; | ||
} |
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,21 @@ | ||
import { Degrees, Kilometers, SpaceObjectType } from '../types/types'; | ||
|
||
export interface SensorParams { | ||
alt: Kilometers; | ||
lat: Degrees; | ||
lon: Degrees; | ||
maxAz: Degrees; | ||
maxAz2?: Degrees; | ||
maxEl: Degrees; | ||
maxEl2?: Degrees; | ||
maxRng: Kilometers; | ||
maxRng2?: Kilometers; | ||
minAz: Degrees; | ||
minAz2?: Degrees; | ||
minEl: Degrees; | ||
minEl2?: Degrees; | ||
minRng: Kilometers; | ||
minRng2?: Kilometers; | ||
name?: string; | ||
type?: SpaceObjectType; | ||
} |
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,11 @@ | ||
import { Radians } from '../types/types'; | ||
|
||
export interface StarObjectParams { | ||
ra: Radians; | ||
dec: Radians; | ||
bf?: string; | ||
h?: string; | ||
name?: string; | ||
pname?: string; | ||
vmag?: number; | ||
} |
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,6 @@ | ||
export { BaseObjectParams } from './BaseObjectParams'; | ||
export { GroundPositionParams } from './GroundPositionParams'; | ||
export { OptionsParams } from './OptionsParams'; | ||
export { SatelliteParams } from './SatelliteParams'; | ||
export { SensorParams } from './SensorParams'; | ||
export { StarObjectParams } from './StarObjectParams'; |
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
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
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
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
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