Documentation ¶
Index ¶
Constants ¶
View Source
const AU = 149.6e9
View Source
const HEIGHT = 800
View Source
const SCALE = 200 / AU // 1 AU = 100 pixels
View Source
const TIMESTEP = 3600 * 24 // Seconds in one day
View Source
const WIDTH = 800
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlanetSimulator ¶
type PlanetSimulator struct {
// contains filtered or unexported fields
}
PlanetSimulator : The planet simulator struct
func NewPlanetSimulator ¶
func NewPlanetSimulator(w *gtk.ApplicationWindow, da *gtk.DrawingArea) *PlanetSimulator
NewPlanetSimulator : Constructor for a PlanetSimulator
func (*PlanetSimulator) StartSimulator ¶
func (p *PlanetSimulator) StartSimulator()
StartSimulator : Starts the simulation
Click to show internal directories.
Click to hide internal directories.