-
Notifications
You must be signed in to change notification settings - Fork 14
SGPdotNET.Util
parzivail edited this page Aug 8, 2019
·
4 revisions
Stores an angle
public class SGPdotNET.Util.Angle
Properties
Type | Name | Summary |
---|---|---|
Double |
Degrees | The angle represented by this object, in degrees |
Double |
Radians | The angle represented by this object, in radians |
Methods
Type | Name | Summary |
---|---|---|
Boolean |
Equals(Object obj) |
|
Int32 |
GetHashCode() | |
String |
ToString() |
Static Fields
Type | Name | Summary |
---|---|---|
Angle |
Zero | The Angle that represents zero radians/degrees |
Stores an angle, specified in degrees but backed in radians
public class SGPdotNET.Util.AngleDegrees
: Angle
Stores an angle, specified in radians and backed in radians. Used for explicit casting.
public class SGPdotNET.Util.AngleRadians
: Angle
Adds extension methods to the System.DateTime
class that are useful for astronomical calculations
public static class SGPdotNET.Util.TimeExtensions
Static Methods
Type | Name | Summary |
---|---|---|
DateTime |
Round(this DateTime date, TimeSpan span) |
Rounds a DateTime to the nearest TimeSpan unit |
Double |
ToGreenwichSiderealTime(this DateTime dt) |
Converts a DateTime to Greenwich Sidereal Time |
Double |
ToJulian(this DateTime dt) |
Converts a DateTime to a Julian date |
Double |
ToLocalMeanSiderealTime(this DateTime dt, Angle longitude) |
Converts a DateTime to Local Mean Sidereal Time |
Generic 3-dimensional vector
public class SGPdotNET.Util.Vector3
Properties
Type | Name | Summary |
---|---|---|
Double |
Length | The length of this vector |
Double |
X | The X component of this vector |
Double |
Y | The Y component of this vector |
Double |
Z | The Z component of this vector |
Methods
Type | Name | Summary |
---|---|---|
Double |
Dot(Vector3 vec) |
Calculates the dot product of this vector and another |
Boolean |
Equals(Vector3 other) |
|
Boolean |
Equals(Object obj) |
|
Int32 |
GetHashCode() | |
String |
ToString() |