Contains extensions to transform a number indicating a heading into the textual representation of the heading.
public static class HeadingExtensionsInheritance System.Object → HeadingExtensions
Returns a heading based on the short textual representation of the heading.
public static double FromAbbreviatedHeading(this string heading);heading System.String
The short textual representation of a heading
System.Double
The heading. -1 if the heading could not be parsed.
Returns a heading based on the short textual representation of the heading.
public static double FromAbbreviatedHeading(this string heading, System.Globalization.CultureInfo? culture=null);heading System.String
The short textual representation of a heading
culture System.Globalization.CultureInfo
The culture of the heading
System.Double
The heading. -1 if the heading could not be parsed.
Returns a heading based on the heading arrow.
public static double FromHeadingArrow(this char heading);heading System.Char
Returns a heading based on the heading arrow.
public static double FromHeadingArrow(this string heading);heading System.String
Returns a textual representation of the heading.
This representation has a maximum deviation of 11.25 degrees.
public static string ToHeading(this double heading, Humanizer.HeadingStyle style=Humanizer.HeadingStyle.Abbreviated, System.Globalization.CultureInfo? culture=null);heading System.Double
The heading value
style HeadingStyle
Whether to return a short result or not. HeadingStyle
culture System.Globalization.CultureInfo
The culture to return the textual representation in
System.String
A textual representation of the heading
Returns a char arrow indicating the heading.
This representation has a maximum deviation of 22.5 degrees.
public static char ToHeadingArrow(this double heading);heading System.Double
System.Char
The heading arrow.