about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--TLE.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/TLE.go b/TLE.go
index a0a4605..f534ea4 100644
--- a/TLE.go
+++ b/TLE.go
@@ -4,12 +4,17 @@ Implementing the "Two-line element set (TLE)", a data format encoding orbital el
 
 package TLE
 
-// tlebytes defines a tle using raw bytes.
+// TLE defines the lines contained in a Two-Line-Element
 type TLE struct {
 	TitleLine TitleLine `json:"titleline"`
 	LineOne   LineOne   `json:"lineone"`
 	LineTwo   LineTwo   `json:"linetwo"`
 }
+
+func NewTLE(titleLine TitleLine, lineOne LineOne, lineTwo LineTwo) *TLE {
+	return &TLE{TitleLine: titleLine, LineOne: lineOne, LineTwo: lineTwo}
+}
+
 type TitleLine struct {
 	Satname string `json:"satname"`
 }