Final exam version with mass and speed
This commit is contained in:
45
UML_objects_end.puml
Normal file
45
UML_objects_end.puml
Normal 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
|
||||
Reference in New Issue
Block a user