Struct Angle
- Namespace
- UnitsNet
- Assembly
- UnitsNet.Angle.dll
In geometry, an angle is the figure formed by two rays, called the sides of the angle, sharing a common endpoint, called the vertex of the angle.
public struct AngleConstructors
Angle(double, AngleUnit)
Creates the quantity with the given numeric value and unit.
public Angle(double value, AngleUnit unit)Parameters
- valuedouble
- The numeric value to construct this quantity with. 
- unitAngleUnit
- The unit representation to construct this quantity with. 
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
Properties
Arcminutes
public double Arcminutes { get; }Property Value
Arcseconds
public double Arcseconds { get; }Property Value
BaseUnit
The base unit of Angle, which is Second. All conversions go via this value.
public static AngleUnit BaseUnit { get; }Property Value
Centiradians
Gets a double value of this quantity converted into Centiradian
public double Centiradians { get; }Property Value
Deciradians
Gets a double value of this quantity converted into Deciradian
public double Deciradians { get; }Property Value
Degrees
public double Degrees { get; }Property Value
Gradians
public double Gradians { get; }Property Value
MaxValue
Represents the largest possible value of Angle.
public static Angle MaxValue { get; }Property Value
Microdegrees
Gets a double value of this quantity converted into Microdegree
public double Microdegrees { get; }Property Value
Microradians
Gets a double value of this quantity converted into Microradian
public double Microradians { get; }Property Value
Millidegrees
Gets a double value of this quantity converted into Millidegree
public double Millidegrees { get; }Property Value
Milliradians
Gets a double value of this quantity converted into Milliradian
public double Milliradians { get; }Property Value
MinValue
Represents the smallest possible value of Angle.
public static Angle MinValue { get; }Property Value
Nanodegrees
Gets a double value of this quantity converted into Nanodegree
public double Nanodegrees { get; }Property Value
Nanoradians
Gets a double value of this quantity converted into Nanoradian
public double Nanoradians { get; }Property Value
NatoMils
public double NatoMils { get; }Property Value
Radians
public double Radians { get; }Property Value
Revolutions
Gets a double value of this quantity converted into Revolution
public double Revolutions { get; }Property Value
Tilt
public double Tilt { get; }Property Value
Unit
public AngleUnit Unit { get; }Property Value
Value
The numeric value this quantity was constructed with.
public double Value { get; }Property Value
Zero
Gets an instance of this quantity with a value of 0 in the base unit Second.
public static Angle Zero { get; }Property Value
Methods
As(AngleUnit)
Convert to the unit representation unit.
public double As(AngleUnit unit)Parameters
- unitAngleUnit
Returns
- double
- Value converted to the specified unit. 
From(double, AngleUnit)
public static Angle From(double value, AngleUnit fromUnit)Parameters
Returns
- Angle
- Angle unit value. 
FromArcminutes(double)
public static Angle FromArcminutes(double arcminutes)Parameters
- arcminutesdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromArcseconds(double)
public static Angle FromArcseconds(double arcseconds)Parameters
- arcsecondsdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromCentiradians(double)
Creates a Angle from Centiradian.
public static Angle FromCentiradians(double centiradians)Parameters
- centiradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromDeciradians(double)
Creates a Angle from Deciradian.
public static Angle FromDeciradians(double deciradians)Parameters
- deciradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromDegrees(double)
public static Angle FromDegrees(double degrees)Parameters
- degreesdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromGradians(double)
public static Angle FromGradians(double gradians)Parameters
- gradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromMicrodegrees(double)
Creates a Angle from Microdegree.
public static Angle FromMicrodegrees(double microdegrees)Parameters
- microdegreesdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromMicroradians(double)
Creates a Angle from Microradian.
public static Angle FromMicroradians(double microradians)Parameters
- microradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromMillidegrees(double)
Creates a Angle from Millidegree.
public static Angle FromMillidegrees(double millidegrees)Parameters
- millidegreesdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromMilliradians(double)
Creates a Angle from Milliradian.
public static Angle FromMilliradians(double milliradians)Parameters
- milliradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromNanodegrees(double)
Creates a Angle from Nanodegree.
public static Angle FromNanodegrees(double nanodegrees)Parameters
- nanodegreesdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromNanoradians(double)
Creates a Angle from Nanoradian.
public static Angle FromNanoradians(double nanoradians)Parameters
- nanoradiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromNatoMils(double)
public static Angle FromNatoMils(double natomils)Parameters
- natomilsdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromRadians(double)
public static Angle FromRadians(double radians)Parameters
- radiansdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromRevolutions(double)
Creates a Angle from Revolution.
public static Angle FromRevolutions(double revolutions)Parameters
- revolutionsdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
FromTilt(double)
public static Angle FromTilt(double tilt)Parameters
- tiltdouble
Returns
Exceptions
- ArgumentException
- If value is NaN or Infinity. 
ToUnit(AngleUnit)
Converts this Angle to another Angle with the unit representation unit.
public Angle ToUnit(AngleUnit unit)Parameters
- unitAngleUnit
Returns
- Angle
- A Angle with the specified unit.