Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit b33a198

Browse files
committed
v1.2.0 commit
1 parent f6f10eb commit b33a198

40 files changed

+438
-1029
lines changed

pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>sss</groupId>
7-
<artifactId>solar_system_simulation_v1_1_2</artifactId>
7+
<artifactId>solar_system_simulation_v1_2_0</artifactId>
88
<version>1.0-SNAPSHOT</version>
9-
<name>solar_system_simulation_v1_1_2</name>
9+
<name>solar_system_simulation_v1_2_0</name>
1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<junit.version>5.8.2</junit.version>
@@ -22,6 +22,11 @@
2222
<artifactId>javafx-fxml</artifactId>
2323
<version>18</version>
2424
</dependency>
25+
<dependency>
26+
<groupId>org.kordamp.bootstrapfx</groupId>
27+
<artifactId>bootstrapfx-core</artifactId>
28+
<version>0.4.0</version>
29+
</dependency>
2530
<dependency>
2631
<groupId>org.junit.jupiter</groupId>
2732
<artifactId>junit-jupiter-api</artifactId>

src/main/java/module-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
requires javafx.controls;
44
requires javafx.fxml;
55

6+
requires org.kordamp.bootstrapfx.core;
7+
68
opens sss to javafx.fxml;
79
exports sss;
810

src/main/java/sss/App.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ public static void init() throws FileNotFoundException {
1515
Window.stage.setScene(SolarSystemScene.scene);
1616
}
1717

18-
public static double getAngleBetween(XY point1, XY point2) {
19-
return App.simplifyAngle(
20-
Math.atan2(point2.x.getMeters() - point1.x.getMeters(),
21-
point2.y.getMeters() - point1.y.getMeters()) * 180 / Math.PI);
22-
}
23-
2418
public static Distance getDistanceBetween(XY point1, XY point2) {
2519
return new Distance(1 + Math.sqrt(
2620
Math.pow(point2.x.getMeters() - point1.x.getMeters(), 2) +
2721
Math.pow(point2.y.getMeters() - point1.y.getMeters(), 2)));
2822
}
2923

24+
public static double getAngleBetween(XY point1, XY point2) {
25+
return App.simplifyAngle(
26+
Math.atan2(point2.x.getMeters() - point1.x.getMeters(),
27+
point2.y.getMeters() - point1.y.getMeters()) * 180 / Math.PI);
28+
}
29+
3030
public static double simplifyAngle(double angle) {
3131
return ((angle % 360) + 360) % 360;
3232
}

0 commit comments

Comments
 (0)