Documentation
¶
Overview ¶
Package grav is bodies, and the gravity between them: the gravBody of the engineering guide. doc/grav.md is its contract.
Every value grav takes in was made by a constructor that refused what it couldn't be, and every value it hands back is reached only through its methods.
This is the floor: a body known only by its mass, which is all an orbit needs. The full door, NewBody, comes with the tables it needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct {
// contains filtered or unexported fields
}
Body is a body under gravity
func Point ¶
Point is a body known only by its mass, the way an orbit sees it. It refuses a mass not above nought, or not finite, and then gives no body.