AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.7" />

 Angle

Represents an angle value.
public enum Unit

An enumeration of angle representations.

public static readonly Angle Half

The 180° angle.

public static readonly Angle HalfQuarter

The 45° angle.

public static readonly Angle Quarter

The 90° angle.

public static readonly Angle TripleHalfQuarter

The 135° angle.

public static readonly Angle Zero

The zero angle.

public Unit Type { get; }

Gets the type of the length.

public string UnitString { get; }

Gets the representation of the unit as a string.

public float Value { get; }

Gets the value of the angle.

public Angle(float value, Unit unit)

Creates a new angle value.

public static Unit GetUnit(string s)

Gets the unit from the enumeration for the provided string.

public static bool op_Equality(Angle a, Angle b)

Checks for equality of two angles.

public static bool op_GreaterThan(Angle a, Angle b)

Compares the magnitude of two angles.

public static bool op_GreaterThanOrEqual(Angle a, Angle b)

Compares the magnitude of two angles.

public static bool op_Inequality(Angle a, Angle b)

Checks for inequality of two angles.

public static bool op_LessThan(Angle a, Angle b)

Compares the magnitude of two angles.

public static bool op_LessThanOrEqual(Angle a, Angle b)

Compares the magnitude of two angles.

public static bool TryParse(string s, out Angle result)

Tries to convert the given string to an Angle.

public int CompareTo(Angle other)

Compares the current angle against the given one.

public bool Equals(Angle other)

Checks for equality with the other angle.

public float ToRadian()

Converts the contained value to rad.

public string ToString(string format, IFormatProvider formatProvider)

Returns a formatted string representing the angle.

public float ToTurns()

Converts the contained value to turns.