Table of Contents

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 Angle

Constructors

Angle(double, AngleUnit)

Creates the quantity with the given numeric value and unit.

public Angle(double value, AngleUnit unit)

Parameters

value double

The numeric value to construct this quantity with.

unit AngleUnit

The unit representation to construct this quantity with.

Exceptions

ArgumentException

If value is NaN or Infinity.

Properties

Arcminutes

Gets a double value of this quantity converted into Arcminute

public double Arcminutes { get; }

Property Value

double

Arcseconds

Gets a double value of this quantity converted into Arcsecond

public double Arcseconds { get; }

Property Value

double

BaseUnit

The base unit of Angle, which is Second. All conversions go via this value.

public static AngleUnit BaseUnit { get; }

Property Value

AngleUnit

Centiradians

Gets a double value of this quantity converted into Centiradian

public double Centiradians { get; }

Property Value

double

Deciradians

Gets a double value of this quantity converted into Deciradian

public double Deciradians { get; }

Property Value

double

Degrees

Gets a double value of this quantity converted into Degree

public double Degrees { get; }

Property Value

double

Gradians

Gets a double value of this quantity converted into Gradian

public double Gradians { get; }

Property Value

double

MaxValue

Represents the largest possible value of Angle.

public static Angle MaxValue { get; }

Property Value

Angle

Microdegrees

Gets a double value of this quantity converted into Microdegree

public double Microdegrees { get; }

Property Value

double

Microradians

Gets a double value of this quantity converted into Microradian

public double Microradians { get; }

Property Value

double

Millidegrees

Gets a double value of this quantity converted into Millidegree

public double Millidegrees { get; }

Property Value

double

Milliradians

Gets a double value of this quantity converted into Milliradian

public double Milliradians { get; }

Property Value

double

MinValue

Represents the smallest possible value of Angle.

public static Angle MinValue { get; }

Property Value

Angle

Nanodegrees

Gets a double value of this quantity converted into Nanodegree

public double Nanodegrees { get; }

Property Value

double

Nanoradians

Gets a double value of this quantity converted into Nanoradian

public double Nanoradians { get; }

Property Value

double

NatoMils

Gets a double value of this quantity converted into NatoMil

public double NatoMils { get; }

Property Value

double

Radians

Gets a double value of this quantity converted into Radian

public double Radians { get; }

Property Value

double

Revolutions

Gets a double value of this quantity converted into Revolution

public double Revolutions { get; }

Property Value

double

Tilt

Gets a double value of this quantity converted into Tilt

public double Tilt { get; }

Property Value

double

Unit

public AngleUnit Unit { get; }

Property Value

AngleUnit

Value

The numeric value this quantity was constructed with.

public double Value { get; }

Property Value

double

Zero

Gets an instance of this quantity with a value of 0 in the base unit Second.

public static Angle Zero { get; }

Property Value

Angle

Methods

As(AngleUnit)

Convert to the unit representation unit.

public double As(AngleUnit unit)

Parameters

unit AngleUnit

Returns

double

Value converted to the specified unit.

From(double, AngleUnit)

Dynamically convert from value and unit enum AngleUnit to Angle.

public static Angle From(double value, AngleUnit fromUnit)

Parameters

value double

Value to convert from.

fromUnit AngleUnit

Unit to convert from.

Returns

Angle

Angle unit value.

FromArcminutes(double)

Creates a Angle from Arcminute.

public static Angle FromArcminutes(double arcminutes)

Parameters

arcminutes double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromArcseconds(double)

Creates a Angle from Arcsecond.

public static Angle FromArcseconds(double arcseconds)

Parameters

arcseconds double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromCentiradians(double)

Creates a Angle from Centiradian.

public static Angle FromCentiradians(double centiradians)

Parameters

centiradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDeciradians(double)

Creates a Angle from Deciradian.

public static Angle FromDeciradians(double deciradians)

Parameters

deciradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromDegrees(double)

Creates a Angle from Degree.

public static Angle FromDegrees(double degrees)

Parameters

degrees double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromGradians(double)

Creates a Angle from Gradian.

public static Angle FromGradians(double gradians)

Parameters

gradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicrodegrees(double)

Creates a Angle from Microdegree.

public static Angle FromMicrodegrees(double microdegrees)

Parameters

microdegrees double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMicroradians(double)

Creates a Angle from Microradian.

public static Angle FromMicroradians(double microradians)

Parameters

microradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMillidegrees(double)

Creates a Angle from Millidegree.

public static Angle FromMillidegrees(double millidegrees)

Parameters

millidegrees double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromMilliradians(double)

Creates a Angle from Milliradian.

public static Angle FromMilliradians(double milliradians)

Parameters

milliradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanodegrees(double)

Creates a Angle from Nanodegree.

public static Angle FromNanodegrees(double nanodegrees)

Parameters

nanodegrees double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNanoradians(double)

Creates a Angle from Nanoradian.

public static Angle FromNanoradians(double nanoradians)

Parameters

nanoradians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromNatoMils(double)

Creates a Angle from NatoMil.

public static Angle FromNatoMils(double natomils)

Parameters

natomils double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromRadians(double)

Creates a Angle from Radian.

public static Angle FromRadians(double radians)

Parameters

radians double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromRevolutions(double)

Creates a Angle from Revolution.

public static Angle FromRevolutions(double revolutions)

Parameters

revolutions double

Returns

Angle

Exceptions

ArgumentException

If value is NaN or Infinity.

FromTilt(double)

Creates a Angle from Tilt.

public static Angle FromTilt(double tilt)

Parameters

tilt double

Returns

Angle

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

unit AngleUnit

Returns

Angle

A Angle with the specified unit.