planet_simulator

package
v0.0.0-...-65d0b4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL