License | CC0 |
---|---|
Maintainer | frosch03@frosch03.de |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
An Object
is something named.
The Celestial
type defines a celestial object within this
library. Every celestial object has
The Body
type is the central data type within the KSP
library. It could be either Railed
or Movable
Railed
is everything withing ksp that is a star, a planet or a moon. They are static in their orbits and are therefore called railed.Movable
is every other part in ksp, that is physical. Here they include deltaV counter, but are also modelled as celestial objects. Actually in ksp orbits around movable parts arent possible. Anyhow, within this data type such constructs are doable.
The 'Orbit a' data type defines an orbit around a central body
centerBody
.
centerBody
is the body the orbit is aroundapoapsis
is the height of the heighest point of the orbitperiapsis
is the height of the lowest point of the orbitinclination
is the angle that the orbit is inclined against the aquatorial planeomega_big
is the longitude of the ascending nodeomega_small
is the argument of the periapsis
mkOrbit :: a -> Height -> Height -> Orbit a Source
mkOrbit
takes a body as well as apoapsis and periapsis and
of that creates an orbit.
mkCircOrbit :: a -> Height -> Orbit a Source
mkCircOrbit
is similar to mkOrbit
with the difference that it
creates a circular orbit.