observe

package
v0.0.0-...-a3e6692 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// A sphere of radius ~= 2 AU would suffice to enclose the inner planets.
	Inner = Scale(iota)
	// A sphere of radius ~= 50 AU would suffice to enclose the outer planets.
	Outer
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Camera  world.Camera
	Root    *mechtree.Node
	Inbuilt SolarSystemModel // An inbuilt model that works without the internet.
	Scale
}

Model of the Solar System.

func NewModel

func NewModel(t celestial.JD, in solsys.Interval) Model

NewModel constructs a new Solar System animation Model.

type Scale

type Scale uint

The Scale may change to that which is better for showing either the inner or outer planets.

type SolarSystemModel

type SolarSystemModel struct {
	PlanetOrbits   []mech.Depictioner
	PlanetOutlines []mech.Depictioner
	SunOutline     mech.Depictioner
}

SolarSystemModel is a model of the Solar System including the orbits and outlines of the nine planets.

func NewSolarSystemModel

func NewSolarSystemModel(t celestial.JD, in solsys.Interval) *SolarSystemModel

NewSolarSystemModel constructs a new SolarSystemModel.

func (*SolarSystemModel) Update

func (mdl *SolarSystemModel) Update(t celestial.JD, in solsys.Interval)

Update the Solar System model.

Jump to

Keyboard shortcuts

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