Final exam version with mass and speed

This commit is contained in:
2026-06-25 14:05:11 +03:00
parent b03800ab63
commit b3c86d92eb
8 changed files with 205 additions and 48 deletions

45
UML_objects_end.puml Normal file
View File

@@ -0,0 +1,45 @@
@startuml
object system {
paused = True/False
show_orbits = True/False
}
object star1 {
name = Star 1
x = current_x
y = current_y
mass = 1.989e30
}
object star2 {
name = Star 2
x = current_x
y = current_y
mass = 1.750e30
}
object planet1_end {
orbit_number = 1
angle = changed_angle
x = current_x
y = current_y
direction = 1
angular_speed = 0.0097
linear_speed = angular_speed * orbit_radius
}
object planet2_end {
orbit_number = 2
angle = changed_angle
x = current_x
y = current_y
direction = -1
angular_speed = 0.0104
linear_speed = angular_speed * orbit_radius
}
system -- star1
system -- star2
star1 -- planet1_end
star2 -- planet2_end
@enduml