Struct Distance
Represents equatorial distance.
Inherited Members
Namespace: Realms
Assembly: Realm.dll
Syntax
public readonly struct Distance
Properties
| Edit this page View SourceRadians
Gets the distance in radians.
Declaration
public double Radians { get; }
Property Value
Type | Description |
---|---|
double | The distance in radians. |
Methods
| Edit this page View SourceFromDegrees(double)
Constructs a Distance from a degrees value.
Declaration
public static Distance FromDegrees(double degrees)
Parameters
Type | Name | Description |
---|---|---|
double | degrees | The distance in degrees. |
Returns
Type | Description |
---|---|
Distance | A Distance value that represents the provided distance in radians. |
FromKilometers(double)
Constructs a Distance from a kilometer value.
Declaration
public static Distance FromKilometers(double kilometers)
Parameters
Type | Name | Description |
---|---|---|
double | kilometers | The distance in kilometers. |
Returns
Type | Description |
---|---|
Distance | A Distance value that represents the provided distance in radians. |
FromMiles(double)
Constructs a Distance from a miles value.
Declaration
public static Distance FromMiles(double miles)
Parameters
Type | Name | Description |
---|---|---|
double | miles | The distance in miles. |
Returns
Type | Description |
---|---|
Distance | A Distance value that represents the provided distance in radians. |
FromRadians(double)
Constructs a Distance from a radians value.
Declaration
public static Distance FromRadians(double radians)
Parameters
Type | Name | Description |
---|---|---|
double | radians | The distance in radians. |
Returns
Type | Description |
---|---|
Distance | A Distance value that represents the provided distance in radians. |