| License | CC0 |
|---|---|
| Maintainer | frosch03@frosch03.de |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.KSP.DataConstructors
Description
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
Railedis everything withing ksp that is a star, a planet or a moon. They are static in their orbits and are therefore called railed.Movableis 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.
centerBodyis the body the orbit is aroundapoapsisis the height of the heighest point of the orbitperiapsisis the height of the lowest point of the orbitinclinationis the angle that the orbit is inclined against the aquatorial planeomega_bigis the longitude of the ascending nodeomega_smallis 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.