Browse Source

Add files to make this a kotlin project

Toni Fadjukoff 8 years ago
parent
commit
67eda7e8f0
3 changed files with 50 additions and 0 deletions
  1. 13 0
      build.gradle
  2. 15 0
      src/main/kotlin/name/lamperi/orbital/main.kt
  3. 22 0
      src/main/resources/satellites.txt

+ 13 - 0
build.gradle View File

1
+buildscript {
2
+    ext.kotlin_version = '1.0.1-2'
3
+
4
+    repositories {
5
+        mavenCentral()
6
+    }
7
+
8
+    dependencies {
9
+        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
10
+    }
11
+}
12
+apply plugin: 'idea'
13
+apply plugin: 'kotlin'

+ 15 - 0
src/main/kotlin/name/lamperi/orbital/main.kt View File

1
+package name.lamperi.orbital;
2
+
3
+import java.io.File;
4
+
5
+data class Satellite (
6
+    val id : String, val lat : Double, val lon : Double, val height : Double)
7
+
8
+
9
+fun parseFile(file : java.io.File) {
10
+    //val contents = file.readText()
11
+}
12
+
13
+fun main(args : Array<String>) {
14
+
15
+}

+ 22 - 0
src/main/resources/satellites.txt View File

1
+#SEED: 0.4724840703420341
2
+SAT0,-11.477603631142884,-104.77252227362014,627.1470931420909
3
+SAT1,-42.76920930885922,-58.112368303090136,543.3736789805419
4
+SAT2,73.74919714233872,112.71698260921238,479.8192173732993
5
+SAT3,5.302461478806038,-123.96214619901389,562.2864804699453
6
+SAT4,26.558782429286964,-99.74114320162842,503.3038620822076
7
+SAT5,-39.99702901776157,-101.41466558820001,352.24757289997865
8
+SAT6,33.89812918981161,-122.99551726025638,498.20473723169334
9
+SAT7,19.816792639559566,175.57976874620135,366.7935754184208
10
+SAT8,86.12713333901232,177.64867404856074,628.0137205668592
11
+SAT9,-71.71956939933284,-106.55000890243635,659.858091934206
12
+SAT10,58.694826783678735,146.77825121988462,588.2783423432504
13
+SAT11,-9.770544872785521,29.862731879627574,506.2493225753584
14
+SAT12,50.5280274794512,177.64577021380558,478.0865278456713
15
+SAT13,-13.351003087787419,-49.31593784243282,348.7273538096939
16
+SAT14,-63.758230834911075,10.273242743675354,311.7248238004683
17
+SAT15,63.356362037170044,11.26863867222886,303.48334715095757
18
+SAT16,-67.87150880399817,67.14738333633505,649.7199184179723
19
+SAT17,64.39917468190762,-177.9309756571499,361.7496272010029
20
+SAT18,40.33012909121703,118.27218613351374,416.1386337296644
21
+SAT19,-2.2115284971220888,-168.10253803111067,619.0126473622861
22
+ROUTE,24.916871528474246,-101.13500281468717,88.13759452854237,-113.15065176179031