Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SCALE = 1e-12
View Source
var T = 1.0
Time interval = 1 year
Functions ¶
func GetMassFromConfig ¶
Types ¶
type Config ¶
type Config struct { Particles []ConfigParticle `json:"particles"` Video OutputVideo `json:"video"` Iterations int `json:"iterations"` }
type ConfigParticle ¶
type OutputVideo ¶
type Particle ¶
type Particle struct { X float64 `json:"x"` Y float64 `json:"y"` Vx float64 `json:"vx"` Vy float64 `json:"vy"` Color color.Color Key string Context []string Mass float64 }
func GetParticleFromConfig ¶
func GetParticleFromConfig(p *ConfigParticle) Particle
type System ¶
func (*System) AddParticle ¶
type SystemInterface ¶
type SystemInterface interface {
AddParticle(p *Particle)
}
Click to show internal directories.
Click to hide internal directories.