model

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	IsPaused bool

	// The end user wall time that an animation takes to complete one cycle
	// measured in units of seconds.
	AnimationDuration float64
	ValidInterval     solsys.Interval
	T                 celestial.JD // Current calendar date.
	TA                celestial.JD // Start at this calendar date.
	TB                celestial.JD // End at this calendar date.

	Observe observe.Model
	Lookup  lookup.Model

	Cams  map[realm.Realm]world.Camera   // A camera for each realm.
	Roots map[realm.Realm]*mechtree.Node // Root nodes for each realm.
}

A Model of the solarsystem Mechane world.

func (*Model) IncrementT

func (mdl *Model) IncrementT(deltaT float64)

IncrementT by the same proportion of the calendar span that delta t is of the animation duration.

The given duration delta t is the period of time elapsed since the last loop and is measured in units of seconds.

Directories

Path Synopsis
Package ellipse computes properties of the ellipse.
Package ellipse computes properties of the ellipse.

Jump to

Keyboard shortcuts

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