![]() |
Angle Structure |
[SerializableAttribute] public struct Angle : IComparable, IFormattable, IConvertible, IComparable<Angle>, IComparable<double>, IEquatable<Angle>, IEquatable<double>
The Angle type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Average | Calculates an average of the specified sequence of Angle values. |
![]() | CompareTo(Angle) | Compares this instance to a specified Angle and returns an indication of their relative values. |
![]() | CompareTo(Double) | Compares this instance to a specified Double and returns an indication of their relative values. |
![]() | CompareTo(Object) | Compares this instance to a specified object and returns an indication of their relative values. |
![]() ![]() | ConvertFrom | Converts the value in the specified sourceUnit to a new Angle in radians. |
![]() | ConvertTo | Converts the Angle to the specified targetUnit. |
![]() | Equals(Angle) | Returns a value indicating whether this instance is equal to a specified Angle value. |
![]() | Equals(Double) | Returns a value indicating whether this instance is equal to a specified Double value. |
![]() | Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object)) |
![]() ![]() | FromAngularMil | Creates a new Angle value from the specified value in angular mil. |
![]() ![]() | FromArcMinutes | Creates a new Angle value from the specified value in arcminutes. |
![]() ![]() | FromArcSeconds | Creates a new Angle value from the specified value in arcseconds. |
![]() ![]() | FromDegrees | Creates a new Angle value from the specified value in degrees. |
![]() ![]() | FromGrads | Creates a new Angle value from the specified value in grads. |
![]() | GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | GetTypeCode | Returns the TypeCode for value type Double. |
![]() ![]() | Parse(String) | Converts the string representation of a number to its Angle equivalent. |
![]() ![]() | Parse(String, NumberStyles) | Converts the string representation of a number in a specified style to its Angle equivalent. |
![]() ![]() | Parse(String, IFormatProvider) | Converts the string representation of a number in a specified culture-specific format to its Angle equivalent. |
![]() ![]() | Parse(String, NumberStyles, IFormatProvider) | Converts the string representation of a number in a specified style and culture-specific format to its Angle equivalent. |
![]() | ToAngularMil | Gets the Angle value in angular mil. |
![]() | ToArcMinutes | Gets the Angle value in arcminutes. |
![]() | ToArcSeconds | Gets the Angle value in arcseconds. |
![]() | ToDegrees | Gets the Angle value in degrees. |
![]() | ToGrads | Gets the Angle value in grads. |
![]() | ToRange | Gets the equivalent angle moved within the range of minValue and minValue + 2.0 * PI. |
![]() | ToString |
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString) |
![]() | ToString(IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. |
![]() | ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. |
![]() | ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
![]() ![]() | TryParse(String, Angle) | Converts the string representation of a number to its Angle equivalent. A return value indicates whether the conversion succeeded or failed. |
![]() ![]() | TryParse(String, NumberStyles, IFormatProvider, Angle) | Converts the string representation of a number in a specified style and culture-specific format to its Angle equivalent. A return value indicates whether the conversion succeeded or failed. |
![]() ![]() | Unwrap | Unwraps a set of Angle values so a comparable mathematical operation can be applied. |
Name | Description | |
---|---|---|
![]() ![]() | Addition(Angle, Angle) | Returns computed sum of values. |
![]() ![]() | Division(Angle, Angle) | Returns computed division of values. |
![]() ![]() | Equality(Angle, Angle) | Compares the two values for equality. |
![]() ![]() | Exponent(Angle, Angle) | Returns result of first value raised to power of second value. |
![]() ![]() | GreaterThan(Angle, Angle) | Returns true if left value is greater than right value. |
![]() ![]() | GreaterThanOrEqual(Angle, Angle) | Returns true if left value is greater than or equal to right value. |
![]() ![]() | (Angle to Double) | Implicitly converts Angle, represented in radians, to a Double. |
![]() ![]() | (Double to Angle) | Implicitly converts value, represented in radians, to an Angle. |
![]() ![]() | Inequality(Angle, Angle) | Compares the two values for inequality. |
![]() ![]() | LessThan(Angle, Angle) | Returns true if left value is less than right value. |
![]() ![]() | LessThanOrEqual(Angle, Angle) | Returns true if left value is less or equal to than right value. |
![]() ![]() | Modulus(Angle, Angle) | Returns computed remainder after dividing first value by the second. |
![]() ![]() | Multiply(Angle, Angle) | Returns computed product of values. |
![]() ![]() | Subtraction(Angle, Angle) | Returns computed difference of values. |
Name | Description | |
---|---|---|
![]() ![]() | MaxValue | Represents the largest possible value of an Angle. This field is constant. |
![]() ![]() | MinValue | Represents the smallest possible value of an Angle. This field is constant. |
Name | Description | |
---|---|---|
![]() | GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
![]() | GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
public double GetGrads(double degrees) { return Angle.FromDegrees(degrees).ToGrads(); }