forked from RemoteTechnologiesGroup/RemoteTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDish.cs
More file actions
28 lines (25 loc) · 825 Bytes
/
Copy pathDish.cs
File metadata and controls
28 lines (25 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
namespace RemoteTech.SimpleTypes
{
public class Dish
{
public readonly float Range;
public readonly double Radians;
public readonly Guid Target;
public Dish(Guid target, double radians, float distance)
{
Target = target;
Radians = radians;
Range = distance;
}
public override String ToString()
{
return String.Format("Dish(Range: {0}, Radians: {1}, Target: {2}",
Range.ToString("F2"),
(Radians / Math.PI * 180).ToString("F2") + "deg",
String.Format("{0} ({1})", Target, RTCore.Instance.Satellites[Target] != null
? RTCore.Instance.Satellites[Target].ToString()
: "Unknown"));
}
}
}