blob: fe4d607690814484d5f4874d17839ae468fad6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package structs
/*
The structs package defines structs that are used to store information that is used for processing
star related data.
*/
// Force struct soring a force vector
type Force struct {
X, Y float64
}
// Coord struct storing coordinates
type Coord struct {
X, Y float64
}
// Star struct storing all necessary star information
type Star struct {
C Coord
F Force
Mass float64
}
|