about summary refs log tree commit diff
path: root/structs/structs.go
blob: 5b1c6eac563b66b10df6b7e6529aaf41124b7b17 (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, Z float64
}

// Coord struct storing coordinates
type Coord struct {
	X, Y, Z float64
}

// Star struct storing all necessary star information
type Star struct {
	C    Coord
	F    Force
	Mass float64
}